i,j panel shows the same factors as the j,i but with
the trace- and x-factor roles interchanged.interaction2wt(x, ...)
## S3 method for class 'formula':
interaction2wt(x, data = sys.parent(), responselab, ...)
## S3 method for class 'default':
interaction2wt(x,
response.var,
responselab = deparse(substitute(y)),
relation = list(x = "free", y = "same"),
x.relation = relation$x,
y.relation = relation$y,
digits = 3,
x.between = c(1, rep(0, ncol(x) - 1)),
y.between = NULL,
cex = 0.75,
panel.input = panel.interaction2wt,
strip.input = strip.interaction2wt,
par.strip.text.input = list(cex = 0.7),
scales.additional,
main.in =
paste(responselab,
": main effects and 2-way interactions",
sep = ""),
xlab.in = TRUE,
xlab = list(labels = ""),
ylab = list(labels = ""),
...,
main.cex)"formula" method, a formula describing the response
variable and factors.
The formula is generally of the form y ~ g1 + g2 + ....
There may be one formula method, a data frame containing values for
any variables in the formula. In the R version,
if not found in data, or if
data is unspecified, the variables are looked for in the
envformula."default" method, the
response variable. This is usually constructed by
formula method from the input data and the input formula.trellis argument.x value of relation argument.y value of relation argument.x value of relation argument.y value of relation argument.panel.interaction2wt.strip.interaction2wt.par.strip.text argument.scales argument.cex for main title."trellis" object containing the plot.panel.interaction2wtanova(aov(len ~ supp*dose, data=ToothGrowth))
interaction2wt(len ~ supp + dose, data=ToothGrowth)
bwplot(len ~ supp | dose, data=ToothGrowth, layout=c(3,1))Run the code above in your browser using DataLab