Hi!
par(mfrow=c(2,1))
splits the plot in two parts for example.
For more information about graphics read introduction to R
provided with your R installation.
if par(mfrow ...
par(mfcol is not flexible enough for you
you can examine the documentation for
?layout
If you need even more flexibility
look at the grid package of Paul Murrel
There is also an artikle in Rnews about combining the graphics function in the
graphics package from P. Murrel.
You may also to consider to learn the graphic functions in the lattice package
of by Deepayan Sarkar
which build on grid.
Sincerely
Eryk
*********** REPLY SEPARATOR ***********
On 6/2/2004 at 10:07 AM Steven White wrote:
>>>Greetings,
>>>
>>>I am new to R and quite confused by the apparent inconsistency in
it's
>>>behavior. My latest difficulty lies in producing eps output for use
with
>>>latex. In particular, I was successful in obtaining a single figure
by
>>>using:
>>>
>>>postscript("ripple1.eps",onefile=FALSE)
>>>plot(nu_set[[1]],ip[[1]])
>>>lines(nu_set[[1]],predict(fitIp[[1]]))
>>>dev.off()
>>>
>>>...but then I tried to place two figures on the same output sheet by
>>>using
>>>split.screen() as follows:
>>>
>>>postscript("ripple1.eps",onefile=FALSE)
>>>split.screen(c(1,2))
>>>screen(1)
>>>plot(nu_set[[1]],ip[[1]])
>>>lines(nu_set[[1]],predict(fitIp[[1]]))
>>>screen(2)
>>>plot(rangeIpNorm)
>>>dev.off()
>>>
>>>and received no output whatsoever. Furthermore, I can no longer get
>>>postscript
>>>output using the original commands! I've tried exiting and
re-starting
>>>R, and
>>>am just about to reboot because I almost cannot believe what I am
seeing.
>>>
>>>Can you spot anything that I am doing wrong?
>>>
>>>Thanks & Best Regards,
>>>Steve
>>>
>>>______________________________________________
>>>R-help at stat.math.ethz.ch mailing list
>>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>>PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic
Ihnestrasse 63-73 14195 Berlin 'v'
tel: 0049-30-83875219 / \
mail: wolski at molgen.mpg.de ---W-W----
http://www.molgen.mpg.de/~wolski