Re: [R] Changing x-axis on boxplot

2010-09-26 Thread Peter Ehlers
Tim, Boxplots are nice, but I find that they can be somewhat misleading when applied to small groups, especially in the suggestion of spread differences. (Your real data may well be more extensive than the ToothGrowth data and so the following may be moot.) I prefer stripcharts for small groups.

Re: [R] Changing x-axis on boxplot

2010-09-26 Thread Dennis Murphy
Hi: Here are a couple of ways: (1) Base graphics: add argument axes = FALSE to both plots, then add axes boxplot(len ~ dose, data = subset(ToothGrowth, supp == 'VC'), boxwex = 0.25, at = 1:3 - 0.2, col = "yellow", main = "Guinea Pigs' Tooth Growth", axes = FALSE,

Re: [R] Changing x-axis on boxplot

2010-09-26 Thread Theresa Csar
Hi, to hide the axis generated by bxp you have to set axes=FALSE and frame.plot=FALSE and then you can plot the x-axis by using the axis() function example: boxplot(len ~ dose, data = ToothGrowth, frame.plot=FALSE,axes=FALSE, boxwex = 0.25, at = 1:3 - 0.2, subset = supp == "