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 == "

[R] Changing x-axis on boxplot

2010-09-26 Thread Tim Clark
Dear List,   I am creating a boxplot with two subsets, very similar to the example by Roger Bivand at ?boxplot (reproduced below).  I am trying to change the labels on the x-axis to have one number to cover both subsets.  I can do this in other plots by using axis=FALSE followed by a separate ax