[R] ggplot2: Boxplot with given box size

Malcolm Ryan malcolmr at cse.unsw.edu.au
Mon Jul 6 06:55:26 CEST 2009


Is there anyway in ggplot2 to set the aesthetics for a geom_boxplot  
directly, rather than having them computed by an implicit stat_boxplot?

If I try:

ggplot(data = t, aes(x = factor(x))) + geom_boxplot(coef=NULL,  
aes(lower=y_q1, upper=y_q3, middle=y_med, ymin=y_min, ymax=y_max))

I get the error:

Error: stat_boxplot requires the following missing aesthetics: y

Malcolm




More information about the R-help mailing list