Skip to content
Prev 304953 / 398506 Next

Lattice bwplot(): Changing Orientation of Plots in Multipanel Display

The primary recommendation is to use the "y ~ x" formula rather than
the "~ y | x"
formula.  The place to look first is in the help files

?bwplot
?panel.bwplot

Here is a example that matches your data structure

Rich



tmp <- data.frame(y=rnorm(20),
                  x=rep(letters[1:2], each=10))
bwplot(y ~ x, data=tmp)
bwplot(x ~ y, data=tmp)

## slightly longer, and illustrating the
## horizontal= and xlab= and ylab= arguments

bwplot(y ~ x, data=tmp, horizontal=FALSE, xlab="group")
bwplot(x ~ y, data=tmp, horizontal=TRUE, ylab="group")
On 9/6/12, Rich Shepard <rshepard at appl-ecosys.com> wrote: