1.Open pdf device>pdf()
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()>dev.off()
Then you can review your plots in the pdf file. For more details see ?pdf
Jun
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
> 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.
>