ggplot2 boxplot confusion
Hey thanks Thierry! I learned two things here ... position="identity" AND x=dummy. Can I ask where you learned these things. I've read a lot of the online reference manual, "the book", other presentations of ggplot2 and don't recall seeing these, especially the x=dummy reference. Does this come from experience with the previous gplot package? Perhaps I should use that too?
ONKELINX, Thierry wrote:
Chris,
You need to specify position = "identity"
library(ggplot2)
series <- c('C2','C4','C8','C10','C15','C20')
series <- factor(series, levels = series)
ids <- c('ID1','ID2','ID3')
mydata <-
data.frame(SERIES=rep(series,30),ID=rep(ids,60),VALUE=rnorm(180), dummy
= factor(1))
ggplot(mydata, aes(y = VALUE, x = dummy)) + geom_boxplot(position =
"identity") + facet_grid(SERIES ~ ID)
Thierry
View this message in context: http://www.nabble.com/ggplot2-boxplot-confusion-tp15706116p15735720.html Sent from the R help mailing list archive at Nabble.com.