Skip to content
Prev 260108 / 398502 Next

scales argument in bwplot (lattice)

On 2011-05-17 06:50, Doran, Harold wrote:
> a similar pattern. My question is, is there a way to make the
 > bottom two boxplots to have the *same* scale, but for the top
 > plot to have its own unique scale?
> own scale. Perhaps there is a way to generalize this so only
 > certain plots have a unique scale and all others are on the
 > same scale.

Does this help:

   bwplot(~ vars|type, layout = c(1,3), data=tmp1
     , scales = 'free'
     , xlim=list(c(-3,3), c(-3,3), c(-60,90))
   )

There's a comment on ?xyplot in the scales section:

  "When relation is "free", xlim or ylim can be a list, ..."

Peter Ehlers