[R] multiple plots problem

Oleg Bartunov oleg at sai.msu.su
Thu Apr 1 15:43:45 CEST 2004

On Thu, 1 Apr 2004, Philipp Pagel wrote:

> > for testing & learning purposes I create X11 device and specify layout like
> > layout(c(1,2,3), 3, 1), so I could play with parameters and see
> > several plots at the same time. That works fine until I try to create 4-th
> > plot - all other plots erased.
> That's expected behaviour: you asked for three plots to be present on
> your canvas.

ok, how to recycle canvas ?

> > Such behaviour isn't desirable for testing purposes and I'm asking
> > where to look to disable erasing other plots.
> Two possible solutions - depending on what exactly you'd like to get:
> Increase the size of the layout matrix to squeeze more plots on the
> canvas or open a new device whenever you want a new window.

Well, I know them and don't like. It's strange there is no way
to say don't erase the whole canvas (it's ok if hi-level function erase
current frame).

> cu
> 	Philipp

Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg at sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

More information about the R-help mailing list