[R] Boxplot Help: Re-ordering the x-axis

Richard M. Heiberger rmh at temple.edu
Thu Aug 17 21:06:17 CEST 2006


month.name
class(month.name)
character"
tmp <- data.frame(m=rep(month.name, 2), y=rnorm(24))
bwplot(y ~ m, data=tmp)

tmp <- data.frame(m=ordered(rep(month.name, 2), levels=month.name), y=rnorm(24))
bwplot(y ~ m, data=tmp)



More information about the R-help mailing list