Re: [R] Lattice: hiding only some strips

From: Michael Hoffman <b3i4old02_at_sneakemail.com>
Date: Sat, 23 Jun 2007 11:49:07 +0100

deepayan.sarkar_at_gmail.com wrote:
> On 6/22/07, Michael Hoffman <b3i4old02_at_sneakemail.com> wrote:

>> What I want is to draw strips at the very top of the plot and not to
>> draw strips that are between panels.
 >

> xyplot(mpg ~ disp | factor(cyl) * HP, mtcars,
> par.strip.text = list(lines = 0.5),
> strip = function(which.given, which.panel, ...) {
> if (which.given == 1)
> strip.default(which.given = 1,
> which.panel = which.panel[which.given],
> ...)
> },
> par.settings =
> list(layout.heights =
> list(strip = rep(c(0, 1), c(5, 1)))))

Thanks, this is just what I was looking for.

-- 
Michael

______________________________________________
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 Sat 23 Jun 2007 - 11:08:16 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 Sat 23 Jun 2007 - 13:32:21 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.