[prev in list] [next in list] [prev in thread] [next in thread]
List: r-help
Subject: Re: [R] strip.custom with strip on left for three conditioning
From: Duncan Mackay <mackay () northnet ! com ! au>
Date: 2010-03-31 22:37:03
Message-ID: 6.1.0.6.1.20100401082827.022c0a08 () mail ! northnet ! com ! au
[Download RAW message or body]
Hi
This is untested but I think for this to work you will need to add scales eg
scales = list(x = list(relation = "free"), y = list(relation = "free")),
also you will need to adjust the axis limits and a few other things.
With the axis limits it is easier to start with a small number to get
things correct as you are dealing with lists and repeating them.
There is one or two messages in the past on this but I do not know what ones.
You will have to google for them. sorry I do not have enough time at the
moment.
Regards
Duncan Mackay
Department of Agronomy and Soil Science
University of New England
ARMIDALE NSW 2351
Email: home: macka@northnet.com.au
At 06:00 1/04/2010, you wrote:
>I want to use a strip.custom as with useOuterStrips for three conditioning
>variables.
>useOuterStrips restricts this to only two conditioning variables, and I
>cannot figure out
>how to write strip.custom properly to do this.
>
>library(lattice)
>
>mtcars$HP <- equal.count(mtcars$hp)
>
>#with two factors
>x2<-xyplot(mpg ~ disp | HP + factor(cyl), mtcars)
>useOuterStrips(x2)
>
>
>#with three factors
>x3<-xyplot(mpg ~ disp | HP + factor(cyl) + factor(carb), mtcars)
>
>update(x3,strip=strip.custom(which.given= 1),
> strip2=strip.custom(which.given= 2),
> strip.left=strip.custom(which.given=3)
>)
>
>--
>Patrick Schmitz
>Graduate Student
>Plant Biology
>1206 West Gregory Drive
>RM 1500
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help@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@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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic