Dear Deepayan, thanks for the hint with the wrapper in latticeExtra, it is very convenient and the plot looks fine. Just from intuition i think that it would look even nicer if the strips at the left side appear at the right site of the plot, as it is implemented in ggplot2.
Is there a way to change the side of the vertical strips? Cheers, Henning > > -------- Original-Nachricht -------- > Datum: Mon, 4 Aug 2008 12:25:06 -0700 > Von: "Deepayan Sarkar" <[EMAIL PROTECTED]> > An: "Gabor Grothendieck" <[EMAIL PROTECTED]> > CC: "Henning Wildhagen" <[EMAIL PROTECTED]>, r-help@r-project.org > Betreff: Re: [R] xyplot strip=function for two conditioning variables > > On Mon, Aug 4, 2008 at 3:36 AM, Gabor Grothendieck > <[EMAIL PROTECTED]> wrote: > > Checkout this one: > > > > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/82452.html > > And there's a wrapper for this in the latticeExtra package: > > library(latticeExtra) > useOuterStrips(xyplot(data=df, > copies~week|Treatment+genes,type=c("b","g"))) > > -Deepayan > > > On Mon, Aug 4, 2008 at 6:24 AM, Henning Wildhagen <[EMAIL PROTECTED]> > wrote: > >> Dear list, > >> > >> for a data structure like in df: > >> > >> set.seed(100) > >> Treatment<-rep(c("Nitrogen","Carbon", "Sulfur"),each=9) > >> week<-rep(c(1,5,9),3,each=3) > >> genes<-rep(c("18s", "EF1b", "NR"),9) > >> copies<-rnorm(27, 1000000,400000) > >> df<-data.frame(Treatment,week,genes,copies) > >> > >> i wrote this code for a xyplot: > >> > >> library(lattice) > >> PLOT<-xyplot(data=df, copies~week|Treatment+genes,type=c("b","g")) > >> > >> I would like to change PLOT in a way, that the strips for Treatment > are > >> displayed only once at the top of each of the three columns. > Additionally i > >> would like to strips for "genes" at the top of each panel. > >> > >> I tried to adopt some code i found in the helplist using > strip=function... > >> but i did not manage to get what i would like. > >> > >> Can anyone give me advice? > >> > >> Thanks, > >> > >> Henning > >> > >> > >> -- > >> > >> > >> > >> [[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. > > > -- [[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.