This will get you started.

Rich




tmp <- data.frame(y=rnorm(20), x=rnorm(20),
                  c=factor(rep(letters[1:5], 4)),
                  g=factor(rep(1:2, each=10)))
v1 <- seq(-1.5, 0, .5)
v2 <- 0:2


xyplot(y ~ x | c, groups = g, data=tmp,
       scales = list(x = list(
                       relation="sliced",
                       at = rep(list(v1, v2), length=5),
                       labels = rep(list(
                         c('A', 'B', 'C', 'D'),
                         c('E', 'F', 'G')), length=5),
                       rot = 45)))

______________________________________________
[email protected] 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.

Reply via email to