[R] How to save multiple graph pages into one postscript file

Mark Myatt mark at myatt.demon.co.uk
Thu Feb 14 10:21:59 CET 2002


Zeng_li at willis.com Writes:

>After creating multiple plots in the graph window (saved in the history), I
>would like to create a postscript or PDF file that contains all the plots
>in the history. However, the Save As function only allows saving the
>current plot that is shown in the graph window (although I could view the
>other plots using page-up and page-down). Is what I was trying to do (i.e.
>create multi-page ps or pdf file) a possibility with R?

Use the same commands you use to create the graphs but instead of
sending them to a display device (by explicitly calling x11() or
windows() to open a display device or just letting R open one up for
you) send then to a postscript device with postscript().

See ?devices and ?postscript for details.

Mark


--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list