[R] Going backwards through plot panels

2012-06-20 Thread R. Michael Weylandt
R-helpers, I'm looking to set up multi-screen plots with layout() or par(mfrow/mfcol = ) but I'm not sure if there's an easy way to go backwards among the panels. E.g. layout(1:2) plot(1:4) plot(1:8) Here I'd like to put some more on the 1:4 plot (e.g., some points or a line or a legend) but

Re: [R] Going backwards through plot panels

2012-06-20 Thread Richard M. Heiberger
?par read about mfg which allows you to index into the arrangement set by mfrow and mfcol Rich On Wed, Jun 20, 2012 at 5:27 PM, R. Michael Weylandt michael.weyla...@gmail.com wrote: R-helpers, I'm looking to set up multi-screen plots with layout() or par(mfrow/mfcol = ) but I'm not sure if

Re: [R] Going backwards through plot panels

2012-06-20 Thread R. Michael Weylandt
That's fantastic Richard and much appreciated. It doesn't seem to play intuitively with layout() [and isn't documented to do so] but do you happen to know an alternative that works nicely with layout()? I'm trying to wrap my head around something like this: layout(matrix(c(1,1,2,3), byrow =

Re: [R] Going backwards through plot panels

2012-06-20 Thread Henrik Bengtsson
FYI, from help(layout, package=graphics): [...] Warnings These functions are totally incompatible with the other mechanisms for arranging plots on a device: par(mfrow), par(mfcol) and split.screen. /Henrik On Wed, Jun 20, 2012 at 3:17 PM, R. Michael Weylandt michael.weyla...@gmail.com wrote: