[R] How to make two side-by side trellis plots same size

Dieter Menne dieter.menne at menne-biomed.de
Thu Jan 26 16:39:25 CET 2006


Thanks, Deepayan

Deepayan Sarkar <deepayan.sarkar <at> gmail.com> writes:

> 
> If that's the only reason, I would suggest rbind-ing them and then use
> 
> scales = list(x = "free")

I probably will go for this.
 
> If you want the first two columns to have the same x-limits, you can specify
> 
> xlim = list(c(0,25), c(0,25), c(0, 2500))
> 
> etc. Otherwise, if you want the panels to have the same physical
> dimensions, look at the panel.width and panel.height arguments in
> ?print.trellis. I can't think of any other way of guaranteeing it.

Documentation said that using panel.width with non-standard aspect (which must 
be 1) leads to undefined effects.

Dieter




More information about the R-help mailing list