Skip to content
Prev 56220 / 398500 Next

bwplot panels like stripplot

I would like to plot horizontal box-and-whisker plots in lattice where
each
factor has its own panel and scales are "free."  Below is a stripplot
version
of what I have in mind.  Substituting "bwplot" doesn't work.  I know
it's gotta
be simple but I can't find the way . . .

x <- c(runif(100, 0, 1), runif(100, 1, 2), runif(100, 2, 3))
y <- c(rep("First", 100), rep("Second", 100), rep("Third", 100))
stripplot(x | y,
            layout=c(1,3),
            scales=list(relation="free"),
            as.table=T,
            bg="white"
  )

Thanks,
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler at pnl.gov