Skip to content
Prev 267324 / 398502 Next

how to control to save plots to which dev

On Tue, 2 Aug 2011, David Winsemius wrote:

            
I think he wants

pdf("a.pdf")
pdf("b.pdf")
for(i in 1:n) {
plot something on a.pdf
plot something on b.pdf
}

This is done using dev.prev/dev.next/dev.set: see their help for 
details.