Deepayan Sarkar has a function combineLimits() in the development version of the latticeExtra package (i.e. the version on r-forge.r-project.org) which will set common scales in each row or column of your layout. It can also remove the internal axes.
# Felix On 26 August 2010 04:43, Kay Cichini <kay.cich...@uibk.ac.at> wrote: > > .. thanks again, richard. > and you swiftly saw the next problem comming up - when using par.settings = > list(layout.widths = list(axis.panel = c(1, 0))) getting rid of the double > tick labeling would be natural - > but i'll leave it at that for today. > > many thanks, > kay > > > Richard M. Heiberger wrote: >> >> The multiple y axes are protecting you in this situation. >> >> >> z <- cbind(rnorm(100,c(1,10),1), rnorm(100,c(20,30),1)) >> dotplot(z[,1]+z[,2] ~ facs$Treatment|facs$Sites, >> outer=TRUE, >> scales = list( >> y = list( >> relation="free")), >> ylab=c("y1", "y2"), >> xlab=c("Site 1", "Site 2"), >> strip=FALSE, >> main="problem") >> >> dotplot(z[,1]+z[,2] ~ facs$Treatment|facs$Sites, >> outer=TRUE, >> scales = list( >> y = list( >> relation="free", >> limits=list(c(-5,13),c(-5,13),c(18,32),c(18,32)))), >> ylab=c("y1", "y2"), >> xlab=c("Site 1", "Site 2"), >> strip=FALSE, main="protected") >> >> For more control (such as suppressing the y-tick labels in the right-hand >> column, >> I recommend Deepayan Sarkar's book. >> >> Rich >> >> [[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. >> >> > > > ----- > ------------------------ > Kay Cichini > Postgraduate student > Institute of Botany > Univ. of Innsbruck > ------------------------ > > -- > View this message in context: > http://r.789695.n4.nabble.com/lattice-help-required-tp2338382p2338707.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > -- Felix Andrews / 安福立 http://www.neurofractal.org/felix/ ______________________________________________ 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.