[R] ggplot2 box plot notches

stvienna wiener stvienna at gmail.com
Tue Sep 29 15:43:18 CEST 2009


Dear List,


I just googled to find out if notched box plots are possible with
ggplot2, but couldn't find a answer to it.

boxplot() has the option: notch = TRUE, e.g.: boxplot(mpg$hwy, notch=TRUE)

My example code (taken from the net) is:

require(ggplot2)
qplot(class, hwy, fill=factor(year), data=mpg, geom="boxplot",
position="dodge")+theme_bw()


Thank you for you help!

Steve




More information about the R-help mailing list