Re: [R] Creating grid graphics with grid.layout

2009-09-24 Thread Jeff Horner
Paul Murrell wrote: Hi If using integer indices is awkward, you could push a viewport tree with the relevant viewports given useful names. Then you can downViewport() using the names (if those plots are lattice plots, then you might even be able to use the 'draw.in' argument). Is that the s

Re: [R] Creating grid graphics with grid.layout

2009-09-24 Thread Paul Murrell
Hi If using integer indices is awkward, you could push a viewport tree with the relevant viewports given useful names. Then you can downViewport() using the names (if those plots are lattice plots, then you might even be able to use the 'draw.in' argument). Is that the sort of thing you are

[R] Creating grid graphics with grid.layout

2009-09-24 Thread Jeff Horner
Hi, I recently created a function which uses grid with a viewport constructed with grid.layout() to position four plots on a plot device. My question is what's the best way to programatically traverse each element of the viewport? The grid is 5x5 and the four plots occupy positions (2,2), (4