[R] multiple pages with ggplot2 possible?
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Fri Nov 22 08:43:16 CET 2013
I don't think anything has changed in the fundamental design of ggplot2, so the answer is still no.
But you can use some kind of loop (for, or *apply) to generate them sequentially. What do you plan to do with them? Save as jpeg? Append into a pdf? Embed in an Sweave or knitr file?
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
Jun Shen <jun.shen.ut at gmail.com> wrote:
>Dear all,
>
>This question was asked a few years ago. Back then, the answer was NO.
>Just
>wonder if the package has been updated to make it possible.
>
>An example (Theoph is a dataset coming with R)
>
>ggplot(data=Theoph, aes(x=Time, y=conc)) + geom_point() +
>facet_wrap(~Subject)
>
>gives me all 12 subjects on one page. Can I break it down to several
>pages?
>say 2x2 on each page?
>
>Thanks.
>
>Jun
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>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.
More information about the R-help
mailing list