David, you solution
> qplot(ind, values, data=stack(data.frame(a,b,c)), geom="boxplot")
Works a treat - thank you!

Thierry, your solution
> ds <- data.frame(a = a, b = b, c = c)
> library(ggplot2) # loads qqplot2
> ggplot(melt(ds), aes(x = variable, y = value)) + geom_boxplot()
Also works.

I can even combine the two solutions, using stack / melt interchangeably.

I am very glad that today I both learned melt/stack and Thierry has
made me curious as to the finer ggplots fine tuning wizardry in ggplot
vs. the simple qplot.

Again - thx.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to