[R] Change page in postscript()

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Sep 23 09:43:41 CEST 2002



Ko-Kang Kevin Wang wrote:
> 
> 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?
> 

Call plot.new() for each missing one.

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



More information about the R-help mailing list