The R Project SVN R

Rev

Rev 9319 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9319 Rev 12256
Line 7... Line 7...
7
}
7
}
8
\usage{
8
\usage{
9
interaction.plot(x.factor, trace.factor, response, fun = mean,
9
interaction.plot(x.factor, trace.factor, response, fun = mean,
10
                 type = c("l", "p"), legend = TRUE,
10
                 type = c("l", "p"), legend = TRUE,
11
                 trace.label = deparse(substitute(trace.factor)),
11
                 trace.label = deparse(substitute(trace.factor)),
12
                 fixed = FALSE, ...)
12
                 fixed = FALSE, xlab, ylab, ylim, lty, col = 1,
-
 
13
                 pch = c(1:9, 0, letters), \dots)
13
}
14
}
14
\arguments{
15
\arguments{
15
  \item{x.factor}{a factor whose levels will form the x axis.}
16
  \item{x.factor}{a factor whose levels will form the x axis.}
16
  \item{trace.factor}{another factor whose levels will form the traces.}
17
  \item{trace.factor}{another factor whose levels will form the traces.}
17
  \item{response}{a numeric variable giving the response}
18
  \item{response}{a numeric variable giving the response}
Line 21... Line 22...
21
  \item{legend}{logical. Should a legend be included?}
22
  \item{legend}{logical. Should a legend be included?}
22
  \item{trace.label}{overall label for the legend.}
23
  \item{trace.label}{overall label for the legend.}
23
  \item{fixed}{Should the legend be in the order of the levels of
24
  \item{fixed}{Should the legend be in the order of the levels of
24
    \code{trace.factor} or in the order of the traces at their
25
    \code{trace.factor} or in the order of the traces at their
25
    right-hand ends?}
26
    right-hand ends?}
-
 
27
  \item{xlab}{the x label of the plot.}  
-
 
28
  \item{ylab}{the y label of the plot.}
-
 
29
  \item{ylim}{numeric of length 2 giving the y limits for the plot.}
-
 
30
  \item{lty}{line type for the lines drawn, with sensible default.}
-
 
31
  \item{col}{the color to be used for plotting.}
-
 
32
  \item{pch}{a vector of plotting symbols or characters, with sensible
-
 
33
    default.}
26
  \item{\dots}{graphics parameters to be passed to the plotting routines.}
34
  \item{\dots}{graphics parameters to be passed to the plotting routines.}
27
}
35
}
28
\details{
36
\details{
29
  By default the levels of \code{x.factor} are plotted on the x axis in
37
  By default the levels of \code{x.factor} are plotted on the x axis in
30
  their given order, with extra space left at the right for the legend
38
  their given order, with extra space left at the right for the legend