Skip to content
Prev 87210 / 398502 Next

Multiple plots on the same pdf file

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!