[R] multiple plots problem
angel_lul at hotmail.com
Thu Apr 1 17:03:55 CEST 2004
Have you considered using
with a non-transparent background
instead of layout.
par(bg = "white") # default is likely to be transparent
split.screen(c(3,1)) # split display into three screens
Oleg Bartunov wrote:
>On Thu, 1 Apr 2004, Duncan Murdoch wrote:
>>On Thu, 1 Apr 2004 15:38:54 +0400 (MSD), Oleg Bartunov
>><oleg at sai.msu.su> 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. Such behaviour isn't desirable for testing
>>>purposes and I'm asking where to look to disable erasing other plots.
>>In Windows you can record all plots by using the record=TRUE option
>>when you open the graphics display, or from the menu on the display
>>window. You cycle back through the history by hitting the PgUp key.
>>You're using X11, so you might need to save your plots explicitly
>>using recordPlot() and then use replayPlot() to see it again (but your
>>front-end might provide access to them more easily, the way Windows
>Thanks, looks like too much work :( I just don't understand a logic
>why I can't recycle canvas.
>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
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help