[R] how to save multiple plots in one PDF file?
jun.shen.ut at gmail.com
Mon May 17 21:52:25 CEST 2010
1.Open pdf device
2.Do your plotting as many as you want, you won't see the plots on the
screen because they go directly to the pdf() device.
3.Turn off the pdf()
Then you can review your plots in the pdf file. For more details see ?pdf
On Mon, May 17, 2010 at 2:41 PM, Shirley Bao <baoxinli at gmail.com> wrote:
> I have created separate plots in multiple graphics windows using the
> windows() function in R.
> How do I save all the plots in one PDF file?
> I tried savePlot("C:/rplot.pdf", type = "pdf"). However, it only saved the
> plot in the current graphics window.
> Thank you!
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> 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