Re: [R] Lattice: merged strips?

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


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

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


Duncan Mackay
Department of Agronomy and Soil Science
University of New England

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
>However, I'm wondering if it is possible to merge the upper shingle
>within levels of that factor, as in:
>Mike Lawrence
>Graduate Student, Department of Psychology, Dalhousie University
>"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
> mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code. mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.

list of date sections of archive