| Line 10... |
Line 10... |
| 10 |
Plots the mean (or other summary) of the response for two-way
|
10 |
Plots the mean (or other summary) of the response for two-way
|
| 11 |
combinations of factors, thereby illustrating possible interactions.
|
11 |
combinations of factors, thereby illustrating possible interactions.
|
| 12 |
}
|
12 |
}
|
| 13 |
\usage{
|
13 |
\usage{
|
| 14 |
interaction.plot(x.factor, trace.factor, response, fun = mean,
|
14 |
interaction.plot(x.factor, trace.factor, response, fun = mean,
|
| 15 |
type = c("l", "p", "b"), legend = TRUE,
|
15 |
type = c("l", "p", "b", "o", "c"), legend = TRUE,
|
| 16 |
trace.label = deparse(substitute(trace.factor)),
|
16 |
trace.label = deparse(substitute(trace.factor)),
|
| 17 |
fixed = FALSE,
|
17 |
fixed = FALSE,
|
| 18 |
xlab = deparse(substitute(x.factor)),
|
18 |
xlab = deparse(substitute(x.factor)),
|
| 19 |
ylab = ylabel,
|
19 |
ylab = ylabel,
|
| 20 |
ylim = range(cells, na.rm=TRUE),
|
20 |
ylim = range(cells, na.rm=TRUE),
|
| Line 27... |
Line 27... |
| 27 |
\item{x.factor}{a factor whose levels will form the x axis.}
|
27 |
\item{x.factor}{a factor whose levels will form the x axis.}
|
| 28 |
\item{trace.factor}{another factor whose levels will form the traces.}
|
28 |
\item{trace.factor}{another factor whose levels will form the traces.}
|
| 29 |
\item{response}{a numeric variable giving the response}
|
29 |
\item{response}{a numeric variable giving the response}
|
| 30 |
\item{fun}{the function to compute the summary. Should return a single
|
30 |
\item{fun}{the function to compute the summary. Should return a single
|
| 31 |
real value.}
|
31 |
real value.}
|
| 32 |
\item{type}{the type of plot: lines or points.}
|
32 |
\item{type}{the type of plot (see \code{\link{plot.default}}): lines
|
| - |
|
33 |
or points or both.}
|
| 33 |
\item{legend}{logical. Should a legend be included?}
|
34 |
\item{legend}{logical. Should a legend be included?}
|
| 34 |
\item{trace.label}{overall label for the legend.}
|
35 |
\item{trace.label}{overall label for the legend.}
|
| 35 |
\item{fixed}{logical. Should the legend be in the order of the levels
|
36 |
\item{fixed}{logical. Should the legend be in the order of the levels
|
| 36 |
of \code{trace.factor} or in the order of the traces at their right-hand ends?}
|
37 |
of \code{trace.factor} or in the order of the traces at their right-hand ends?}
|
| 37 |
\item{xlab,ylab}{the x and y label of the plot each with a sensible default.}
|
38 |
\item{xlab,ylab}{the x and y label of the plot each with a sensible default.}
|