[R] par(mfcol=2, mfrow=3) equivalent for trellis
Deepayan Sarkar
deepayan at stat.wisc.edu
Wed Apr 6 17:00:26 CEST 2005
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
More information about the R-help
mailing list