Hi,
Is it easy with S+ to have side by side several interaction plots between two
factors, given the value of a 3rd factor (e.g. with trellis) ? In R, a slight
modification of an example of bwplot help file does the trick (see below), but
can it be transformed for S+?
Olivier
In R:
library(lattice)
data(OrchardSprays)
bwplot(decrease ~ treatment|I(rowpos<5), OrchardSprays, groups = rowpos,
panel = "panel.superpose",
panel.groups = "panel.linejoin",
xlab = "treatment",
key = list(lines = Rows(trellis.par.get("superpose.line"),
c(1:7, 1)),
text = list(lab = as.character(unique(OrchardSprays$rowpos)),
columns = 4, title = "Row position")))
Sincerely,
Olivier Renaud
Olivier.Renaud@pse.unige.ch http://www.unige.ch/~renaud/
Methodology and Data Analysis - Faculty of Psychology and Education
University of Geneva - 40, Bd du Pont d'Arve - CH-1211 Geneva 4
|