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. Regards, Oleg _____________________________________________________________ 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
> 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.> 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. cu Philipp -- Dr. Philipp Pagel Tel. +49-89-3187-3675 Institute for Bioinformatics / MIPS Fax. +49-89-3187-3585 GSF - National Research Center for Environment and Health Ingolstaedter Landstrasse 1 85764 Neuherberg, Germany http://mips.gsf.de/~pagel
The command: layout(c(1,2,3), 3, 1) specifies 3 plots Try layout(1:4,2,2,byrow=T) Regards, Alex -----Original Message----- From: Oleg Bartunov [mailto:oleg at sai.msu.su] Sent: April 1, 2004 7:39 AM To: R-help Subject: [R] multiple plots problem 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. Regards, Oleg _____________________________________________________________ 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 https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
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
Correction: I should have wrote layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE)) Sorry Alex -----Original Message----- From: Hanke, Alex [mailto:HankeA at mar.dfo-mpo.gc.ca] Sent: April 1, 2004 9:25 AM To: 'Oleg Bartunov'; 'r-help at stat.math.ethz.ch' Subject: RE: [R] multiple plots problem The command: layout(c(1,2,3), 3, 1) specifies 3 plots Try layout(1:4,2,2,byrow=T) Regards, Alex -----Original Message----- From: Oleg Bartunov [mailto:oleg at sai.msu.su] Sent: April 1, 2004 7:39 AM To: R-help Subject: [R] multiple plots problem 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. Regards, Oleg _____________________________________________________________ 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 https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html ______________________________________________ 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