Skip to content

boxplots: yaxp does not work

2 messages · Jörg Groß, jim holtman

#
Hi,

I'd like to change the y-tickmarks of a boxplot.
But it doesn't work with yaxp (like I would do it in a plot-function).

Can someone help me out?
#
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

I have no idea of what you would like to do with the tick marks.  I
assume you can always use 'axis' to label your axis:

boxplot(len ~ dose, data = ToothGrowth,
        boxwex = 0.25, at = 1:3 + 0.2, yaxt='n',
        subset = supp == "OJ", col = "orange")
axis(2, at=7:31, labels=rep("",25))   # put tick mark every number

axis(2, at=seq(7,31,5))  # put labels on some
On Sun, Jan 11, 2009 at 5:38 PM, J?rg Gro? <joerg at licht-malerei.de> wrote: