Skip to content

scales argument in bwplot (lattice)

4 messages · Doran, Harold, Peter Ehlers, Duncan Mackay

#
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
1 day later
#
Hi Peter

A little late but catching up

see ? combineLimits from the latticeExtra package

a very welcome addition in particular when combined with 
useOuterStrips with multiple conditioning

Regards

Duncan

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
ARMIDALE NSW 2351
Email: home mackay at northnet.com.au
At 01:29 18/05/2011, you wrote:
1 day later
#
On 2011-05-18 17:50, Duncan Mackay wrote:
I agree that latticeExtra has some very nice goodies, but in
this case I don't think that combineLimits answers Harold's
request.

Peter Ehlers