[R] Lattice: Superpose bwplot and dotplot [newbie question]

Lord Yo nabble at sporez.com
Tue Jun 17 09:30:21 CEST 2008




Stephen D. Weigand wrote:
> 
> 
> y <- rnorm(100)
> g <- factor(sample(c("g1", "g2"), size = 100, replace = TRUE))
> x <- factor(sample(c("A", "B"), size = 100, replace = TRUE))
> bwplot(g ~ y | x,
>        panel = function(x, y, ...) {
>          panel.dotplot(x, y, ...)
>          panel.bwplot(x, y, pch = "|", ...)
>        })
> 

Thanks - that helped! After I realized that for my example, only the first x
and y are replaced by my own variables (and not in the panel calls), it
worked great!

-- 
View this message in context: http://www.nabble.com/Lattice%3A-Superpose-bwplot-and-dotplot--newbie-question--tp17873822p17879641.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list