Re: [R] Printing to PDF in for

2009-12-14 Thread Romain Francois
See the "onefile" and "file" arguments of ?pdf and then do something like this : pdf( file = "plot-%03d.pdf", onefile = FALSE, width = 9.25, height = 9.25, family="Helvetica",pointsize=8,bg="white" ) Romain On 12/14/2009 12:09 PM, Trafim Vanishek wrote: Hi everybody, I would like to ask i

[R] Printing to PDF in for

2009-12-14 Thread Trafim Vanishek
Hi everybody, I would like to ask if it is possible using pdf function or some other to print plots in cycle such that every new plot is on new page. like this pdf(file="D:/Plot.pdf",width = 9.25,height=9.25, family="Helvetica",pointsize=8,bg="white") for (i in 1:10){ x <- seq(1,40,1) y <- 2*x