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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi Kevin,> Another question about graphics... > > ... > > 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?Have a look at the function frame () with which you can skip plotting regions and which you could incorporate at the end of your function foo.plot (). Cheers, Lorenz -- Lorenz Gygax, Dr. sc. nat. Artificial Intelligence Lab, Department of Information Technology University of Zurich-Irchel, +41-1-635 67 17, gygax at ifi.unizh.ch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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:> > 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._