[R] adding graphics after dev.copy

Giampiero Salvi giampi at kth.se
Wed Feb 28 11:52:16 CET 2007


Hi,
sorry for the multiple posting ;)
Here is the way to do it:

pdf(file="file1.pdf")
dev.control(displaylist='enable')
plot(1:10)
dev.copy(pdf,file="file2.pdf")
points(2,3)
dev.off()
dev.off()

Giampiero



More information about the R-help mailing list