Re: [R] Lattice: merged strips?

From: Duncan Mackay <mackay_at_northnet.com.au>
Date: Thu, 10 Jul 2008 15:43:45 +1000

Mike

see ?strip.custom and strip.default

Basically you need to create a string of factor levels equal to the number of panels.

Below is an example for a plot of 24 panels 4 columns and six rows. so that row 1 is:

"2000 Summer" | "2000 Autumn" | "2000 Winter" | "2000 Spring" and so on for the remaining panel rows.

strip = strip.custom(factor.levels = c(paste(rep(2000:2005, each = 4),

                                                         rep(c("Summer","Autumn","Winter","Spring"),6), 
sep = " ") ),

Use the xyplot layout argument to set up your layout properly to make it easier.

If you want a 2 line strip then may be "\n" to break the paste into to 2 lines may do.
There was post about ?6 weeks ago on it I think

Regards

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
ARMIDALE NSW 2351
Email:
home: mackay_at_northnet.com.au

At 14:47 10/07/2008, you wrote:
>Hi all,
>
>By default a call to xyplot from the Lattice package when using 2
>factors [eg xyplot( dv~iv | XY * AB ) ] yields the following shingle
>structure:
>
>|_A_|_A_|_B_|_B_|
>|_X_|_Y_|_X_|_Y_|
>
>However, I'm wondering if it is possible to merge the upper shingle
>within levels of that factor, as in:
>
>|___A___|___B___|
>|_X_|_Y_|_X_|_Y_|
>
>Mike
>
>--
>Mike Lawrence
>Graduate Student, Department of Psychology, Dalhousie University
>
>www.memetic.ca
>
>"The road to wisdom? Well, it's plain and simple to express:
>Err and err and err again, but less and less and less."
> - Piet Hein
>
>______________________________________________
>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.



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 Thu 10 Jul 2008 - 05:38:23 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 Thu 10 Jul 2008 - 15:31:16 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