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. > ______________________________________________ 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.