How to extract the y-axis labels from the boxplot in R?
Example,
bxp = boxplot(1:100)
The y-axis labels are 0, 20, 40, 60, 80, 100. I wonder how to extract this programmingly?
How to extract the y-axis labels from the boxplot in R?
Example,
bxp = boxplot(1:100)
The y-axis labels are 0, 20, 40, 60, 80, 100. I wonder how to extract this programmingly?
?axTicks
should do it, so long as the resulting boxplot
graphics device window is still open:
axTicks(2)
#[1] 0 20 40 60 80 100