Skip to content

postscript()

2 messages · Ko-Kang Kevin Wang, Uwe Ligges

#
Hi,

I've been trying out postscript() when onefile is set to FALSE.  However
I'm having trouble understanding the documentation for postscript().

Suppose I want to do:
  plot(1:10)
  plot(1:10, type = "l")
and store them in foo.ps and goo.ps.  Furthermore, I'd like to do then
with one postscript() command -- because this is just a simplified version
of what I really need (i.e. much more than two plots).  Can I do something
like:
  postscript(c("foo.ps", "goo.ps"), onefile = FALSE)
  plot(1:10)
  plot(1:10, type = "l")
  dev.off()
it doesn't work...

Cheers,

Kevin

------------------------------------------------------------------------------
/* Time is the greatest teacher, unfortunately it kills its students */

Ko-Kang Kevin Wang
Postgraduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz/~kwan022


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Ko-Kang Kevin Wang wrote:
The docs don't mention that you can specify a vector of filenames: "For
use with onefile=FALSE give a printf format such as "Rplot%03d.ps" (the
default in that case)."
If you have specific filenames (i.e. a fixed number of plots), it's easy
to call postscript several times, isn't it?
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._