[R] Vertical bwplot and stripplot

From: David Neu <david_at_davidneu.com>
Date: Sat, 23 Apr 2011 09:26:36 -0400


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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 23 Apr 2011 - 13:28:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 23 Apr 2011 - 14:10:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive