Skip to content
Back to formatted view

Raw Message

Message-ID: <BANLkTi=XDkJXwb_qTWGbFUQ_u2PJwD5T5w@mail.gmail.com>
Date: 2011-04-23T13:26:36Z
From: David Neu
Subject: Vertical bwplot and stripplot

Hi,

I'd like to change the default orientation of bwplot() and stripplot()
so the plots are displayed vertically.  Passing horizontal=FALSE into
stripplot in the simple code below doesn't seem to be the answer.

library(lattice);
x <- rnorm(100);
y <- as.factor(sapply(1:100, function(k) sample(c("A","B","C"), 1,
prob=c(1/2, 1/3, 1/6))));
my.df <- data.frame(x=x, y=y);
stripplot(~x | y, data=my.df, as.table=TRUE, layout=c(1,3), hor);

Many thanks for any suggestions!

Cheers,
Dave