[R] multiple plots problem

Duncan Murdoch dmurdoch at pair.com
Thu Apr 1 15:37:35 CEST 2004


On Thu, 1 Apr 2004 15:38:54 +0400 (MSD), Oleg Bartunov
<oleg at sai.msu.su> wrote :

>Hello,
>
>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
does).

Duncan Murdoch




More information about the R-help mailing list