zeng_li@willis.com
2002-Feb-13 23:46 UTC
[R] How to save multiple graph pages into one postscript file
Dear R users, 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? Thank you very much in advance! Regards, Lixin Zeng The information in this email and in any attachments is confidential and may be privileged. If you are not the intended recipient, please destroy this message, delete any copies held on your systems and notify the sender immediately. You should not retain, copy or use this email for any purpose, nor disclose all or any part of its content to any other person. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian D Ripley
2002-Feb-14 07:57 UTC
[R] How to save multiple graph pages into one postscript file
On Wed, 13 Feb 2002 zeng_li at willis.com wrote:> Dear R users, > > 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?So this is using a windows() device under Windows? No other R graphics device has a plot history. The history is only supported to the extent of replaying on the same device in the same session. Why not just re-run the R commands which created the plots on apostscript(0 or pdf() device? General comment: this message did not mention the OS, and would make no sense to people who have not used the history mechanism on a windows() device. Could posters please give sufficient context. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Mark Myatt
2002-Feb-14 09:21 UTC
[R] How to save multiple graph pages into one postscript file
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._