The R Project SVN R

Rev

Rev 30461 | Rev 42333 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30461 Rev 30912
Line 7... Line 7...
7
  Further, in S this a method of the \code{\link{plot}} generic function
7
  Further, in S this a method of the \code{\link{plot}} generic function
8
  for \code{design} objects.
8
  for \code{design} objects.
9
}
9
}
10
\usage{
10
\usage{
11
plot.design(x, y = NULL, fun = mean, data = NULL, \dots,
11
plot.design(x, y = NULL, fun = mean, data = NULL, \dots,
12
            ylim = NULL, xlab = "Factors", ylab = NULL, main = NULL,
12
            ylim = NULL, xlab = "Factors", ylab = NULL,
-
 
13
            main = NULL, ask = NULL, xaxt = par("xaxt"),
13
            ask = NULL, xaxt = par("xaxt"), axes = TRUE, xtick = FALSE)
14
            axes = TRUE, xtick = FALSE)
14
}
15
}
15
\arguments{
16
\arguments{
16
  \item{x}{either a data frame containing the design factors and
17
  \item{x}{either a data frame containing the design factors and
17
    optionally the response, or a \code{\link{formula}} or
18
    optionally the response, or a \code{\link{formula}} or
18
    \code{\link{terms}} object.}
19
    \code{\link{terms}} object.}
Line 72... Line 73...
72
utils::str(esoph)
73
utils::str(esoph)
73
plot.design(esoph) ## two plots; if interactive you are "ask"ed
74
plot.design(esoph) ## two plots; if interactive you are "ask"ed
74
 
75
 
75
## or rather, compare mean and median:
76
## or rather, compare mean and median:
76
op <- par(mfcol = 1:2)
77
op <- par(mfcol = 1:2)
77
plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0,0.8))
78
plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0, 0.8))
78
plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0,0.8), fun = median)
79
plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0, 0.8),
-
 
80
            fun = median)
79
par(op)
81
par(op)
80
}
82
}
81
\keyword{hplot}
83
\keyword{hplot}
82
 
84