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

From: Lord Yo <nabble_at_sporez.com>
Date: Tue, 17 Jun 2008 00:30:21 -0700 (PDT)

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.

______________________________________________
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 Tue 17 Jun 2008 - 07:34:09 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 Tue 17 Jun 2008 - 08:30:45 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