Re: [R] ggplot2 boxplot confusion

From: Chris Friedl <cfriedalek_at_gmail.com>
Date: Thu, 28 Feb 2008 04:51:20 -0800 (PST)

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.

______________________________________________
R-help_at_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.
Received on Thu 28 Feb 2008 - 12:57:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Feb 2008 - 09:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive