Re: [R] ggplot2 boxplot: horizontal, univariate

2010-06-18 Thread baptiste auguie
Try this, qplot(factor(0), mpg, data=mtcars, geom="boxplot", xlab="")+ coord_flip() + scale_x_discrete(breaks=NA) HTH, baptiste On 18 June 2010 16:47, Jacob Wegelin wrote: > > In ggplot2, I would like to make a boxplot that has the following > properties: > > (1) Contrary to default, the meanin

[R] ggplot2 boxplot: horizontal, univariate

2010-06-18 Thread Jacob Wegelin
In ggplot2, I would like to make a boxplot that has the following properties: (1) Contrary to default, the meaningful axis should be the horizontal axis. Lattice does this, for instance, by library(lattice);bwplot(~mtcars$mpg) (2) It is *univariate*, i.e., of a single vector, say mtcars$mpg.