Dear friends of lattice, I know how to position trellis plots with print(...,split,more=T) or (...position). Sometimes I wish I had something like the old "par(mfcol=2, mfrow=3)" mechanism, where the next free viewport is automatically chosen. I tried fiddling with grid-viewports, but could not find an easy solution. Did I miss something? Dieter Menne
par(mfcol=2, mfrow=3) equivalent for trellis
4 messages · Dieter Menne, Dimitris Rizopoulos, Deepayan Sarkar +1 more
probably you want to use the "layout" argument, see its description in "?xyplot()". I hope it helps. Best, Dimitris ---- Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/ http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm ----- Original Message ----- From: "Dieter Menne" <dieter.menne at menne-biomed.de> To: "R-Help" <r-help at stat.math.ethz.ch> Sent: Wednesday, April 06, 2005 4:06 PM Subject: [R] par(mfcol=2, mfrow=3) equivalent for trellis
Dear friends of lattice, I know how to position trellis plots with print(...,split,more=T) or (...position). Sometimes I wish I had something like the old "par(mfcol=2, mfrow=3)" mechanism, where the next free viewport is automatically chosen. I tried fiddling with grid-viewports, but could not find an easy solution. Did I miss something? Dieter Menne
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Wednesday 06 April 2005 09:06, Dieter Menne wrote:
Dear friends of lattice, I know how to position trellis plots with print(...,split,more=T) or (...position). Sometimes I wish I had something like the old "par(mfcol=2, mfrow=3)" mechanism, where the next free viewport is automatically chosen. I tried fiddling with grid-viewports, but could not find an easy solution. Did I miss something?
This is definitely not doable right now (since print.trellis by default plots on a new page), but it can be implemented if there's interest. The easiest solution would involve changing print.trellis to get the default 'split' from some sort of user defined setting. Most of the mechanism required for this is already in place. A grid level implementation of par(mfrow) may help, but I don't think that's in keeping with grid's design goals. Deepayan
Hi
Deepayan Sarkar wrote:
On Wednesday 06 April 2005 09:06, Dieter Menne wrote:
Dear friends of lattice, I know how to position trellis plots with print(...,split,more=T) or (...position). Sometimes I wish I had something like the old "par(mfcol=2, mfrow=3)" mechanism, where the next free viewport is automatically chosen. I tried fiddling with grid-viewports, but could not find an easy solution. Did I miss something?
This is definitely not doable right now (since print.trellis by default plots on a new page), but it can be implemented if there's interest. The easiest solution would involve changing print.trellis to get the default 'split' from some sort of user defined setting. Most of the mechanism required for this is already in place. A grid level implementation of par(mfrow) may help, but I don't think that's in keeping with grid's design goals.
Right. Everything in grid happens in the current "viewport" and a viewport does not have to (and often does not) correspond to a plot. There is no obvious "next viewport" for grid to go to (in general). Paul
Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul at stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/