Re: [R] how to specify ggplot2 facet plot order

2008-02-27 Thread ONKELINX, Thierry
Verzonden: woensdag 27 februari 2008 11:23 Aan: r-help@r-project.org Onderwerp: Re: [R] how to specify ggplot2 facet plot order Hi Thierry thanks for your help. I've been searching the R-help archives for posts by you and Hadley as a way to learn ggplot details so I appreciate your help to

Re: [R] how to specify ggplot2 facet plot order

2008-02-27 Thread Chris Friedl
Hi Thierry thanks for your help. I've been searching the R-help archives for posts by you and Hadley as a way to learn ggplot details so I appreciate your help to the R community. I wasn't aware of the levels option in the factors function. In my real application I get the data using read.csv an

Re: [R] how to specify ggplot2 facet plot order

2008-02-27 Thread ONKELINX, Thierry
Chris, The order of the facets row or column depend on the order in the associated factor. The code below is what you want. Note that I have changed 'cases' in 'series' because your example was not reproducible as a definition of 'cases' was missing. library(ggplot2) series <- c('C2','C4','C8','C