[R] Multiple plots on the same pdf file

Liaw, Andy andy_liaw at merck.com
Fri Feb 24 20:41:06 CET 2006


You need to say more explicitly what `does not work' means (as the Posting
Guide asks).  What you've stated will generate plots in separate pages in
the PDF file.  If that's not what you want, then tell us exactly what you
are looking for.

Andy

From: Juan Lewinger
> 
> Is there a way to output multiple plots generated with a high 
> level plot function such as "plot()" to the same pdf file? 
> The following does not work (in windows XP):
> 
> pdf(filename)
> plot(...)                         # first plot
> plot(...)                         # second plot
> .....
> plot(...)                         # n-th plot
> dev.off()
> 
> Thanks for your help!
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list