[R] How to make two side-by side trellis plots same size
deepayan.sarkar at gmail.com
Thu Jan 26 17:12:33 CET 2006
On 1/26/06, Dieter Menne <dieter.menne at menne-biomed.de> wrote:
> 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
> > 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
> be 1) leads to undefined effects.
Yes, because panel.width and panel.height together define the aspect,
and will override whatever the 'aspect' argument says. It's fine to
have aspect="fill" (the default), or even 1 probably, and then control
the aspect using panel.width and panel.height.
More information about the R-help