Skip to content
Prev 132083 / 398506 Next

Plot question

Hi Alan,

Yes it is, but you need to do a bit work.  There are different approaches. 
Look at the at= option under

?bxp

and draw your boxplots with something like:

boxplot(y ~ as.numeric(as.factor(grp)), at=c(0.5, 2, 2.5, 3), xaxt="n", ...)
axis(side=1, at=c(0.5, 2, 2.5, 3), labels=c("0.5","2","2.5","3"))

This should do it, and is perhaps the easiest route.  There may be something
missing, because I don't have a concrete example.  Anyhow, you should be
able to fill in the gaps.

HTH,

Mark.
Alan Barnett wrote: