The only way I know is to calculate the field values myself as follows:
library(plyr) xx <- ddply(mtcars,.(cyl), transform, ymin = min(mpg), ymax = max(mpg), middle = median(mpg), lower = quantile(mpg,0.25), upper = quantile(mpg,0.75)) ggplot(data = xx,aes(x = factor(cyl))) + geom_boxplot(aes(ymin = ymin,ymax = ymax,middle = middle,upper = upper,lower= lower), stat = 'identity')
There are a few ddply
call ddply
, but you should be able to ignore them safely.
joran source share