Re: [R] Separate x-axis ticks for panels in xyplot()?

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Tue, 08 May 2007 22:10:22 -0400 (EDT)


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)))

______________________________________________
R-help_at_stat.math.ethz.ch 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 Wed 09 May 2007 - 02:15:47 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 Wed 09 May 2007 - 02:32:10 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.