Skip to content

Multiple plots on the same pdf file

1 message · 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!