Skip to content
Prev 56232 / 398500 Next

bwplot panels like stripplot

On Friday 24 September 2004 14:45, Waichler, Scott R wrote:
I'm completely confused.

First of all, your two calls are not comparable -- stripplot has the 
`formula' x|y (which incidentally is undocumented and completely 
unreliable), while bwplot has x ~ y. 

Secondly, y is a character vector, which is inappropriate (you probably 
want it to be a factor). You might still have expected it to work, but 
to make things more complicated, horizontal=T, which means your 'x' 
should be the factor, which makes your 'y' completely uninterpretable.

The bwplot equivalent of your stripplot call (with the formula changed 
to a valid equivalent), namely

bwplot(~x | y,
       layout=c(1,3),
       scales=list(relation="free"),
       as.table=T,
       bg="white"
       )

works as expected for me. I have no idea what you expect bg="white" to 
achieve, though.

Deepayan