Marta Rufino
2007-May-25 16:58 UTC
[R] xyplot: different scales accross rows, same scales within rows
Dear list members, I would like to set up a multiple panel in xyplots, with the same scale for all colunms in each row, but different accross rows. relation="free" would set up all x or y scales free... which is not what I want :-( Is this possible? Thank you in advance, Best wishes, Marta
Gabor Grothendieck
2007-May-25 17:44 UTC
[R] xyplot: different scales accross rows, same scales within rows
xlim= can take a list: # CO2 is built into R library(lattice) xlim <- rep(list(c(0, 1000), c(0, 2000)), each = 2) xyplot(uptake ~ conc | Type * Treatment, data = CO2, scales = list(relation = "free"), xlim = xlim) On 5/25/07, Marta Rufino <mrufino at cripsul.ipimar.pt> wrote:> Dear list members, > > > I would like to set up a multiple panel in xyplots, with the same scale > for all colunms in each row, but different accross rows. > relation="free" would set up all x or y scales free... which is not what > I want :-( > > Is this possible? > > > Thank you in advance, > Best wishes, > Marta > > ______________________________________________ > 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. >
Deepayan Sarkar
2007-May-25 18:07 UTC
[R] xyplot: different scales accross rows, same scales within rows
On 5/25/07, Marta Rufino <mrufino at cripsul.ipimar.pt> wrote:> Dear list members, > > > I would like to set up a multiple panel in xyplots, with the same scale > for all colunms in each row, but different accross rows. > relation="free" would set up all x or y scales free... which is not what > I want :-( > > Is this possible?It's possible, but requires some abuse of the Trellis design, which doesn't really allow for such use. See https://stat.ethz.ch/pipermail/r-help/2004-October/059396.html -Deepayan