Dear r-helpers,

In an xyplot I have

xyplot(y ~ x | c, groups = g,
        scales = list(
                x = list(
                        at = v1,
                        labels = c('A', 'B', 'C', 'D'),
                        rot = 45
                )
        )
)

g consists of two groups. How do I define a different set of x ticks  
and labels for the second panel? I'm looking for something like

xyplot(y ~ x | c, groups = g,
        scales = list(
                x = list(ifelse(g == g1, {
                        at = v1,
                        labels = c('A', 'B', 'C', 'D'),
                        rot = 45},
                        {at = v2,
                        labels = c('E', 'F' 'G"),
                        rot = 45}
                )
        )
)


_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/

______________________________________________
[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