[R] Change page in postscript()

Ko-Kang Kevin Wang kwan022 at stat.auckland.ac.nz
Mon Sep 23 06:50:39 CEST 2002


Hi,

Another question about graphics...

Suppose I have:
  par(mfrow = c(4, 6)) 
which will set up a figure region for 24 plots.  But, I actually only need
23 plots.  In fact I wrote a little function, foo.plot, which will draw
all the 23 plots at once with:
  foo.plot(x)
where x is a data frame.

Now, suppose I want to draw several set of these 23 plots, but want to put
them all in one postscript file. i.e.
  postscript("foo.ps, horiz = F)
  foo.plot(x)
  foo.plot(y)
where x and y are both data frames.

This is when I have this problem.  The first plot of foo.plot(y) will go
into the last empty space in the foo.plot(x) region.  This is expected as
I set up the par() above.  But is it possible to change this?  i.e. to
force foo.plot(y) to be draw on the next page?

Cheers,

Kevin

------------------------------------------------------------------------------
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list