ecdfplot(x, data, ...)## S3 method for class 'formula':
ecdfplot(x, data,
prepanel = "prepanel.ecdfplot",
panel = "panel.ecdfplot",
ylab,
\dots)
## S3 method for class 'numeric':
ecdfplot(x, data = NULL, xlab, \dots)
prepanel.ecdfplot(x, f.value = NULL, ...)
panel.ecdfplot(x, f.value = NULL, type = "s",
groups = NULL, qtype = 7,
ref = TRUE,
...)
ecdfplot
, x
is the object on which
method dispatch is carried out. For the "formula"
method,
x
is a formula describing the form of conditioning plot, and
has to be of the form ~x
"formula"
method, a data frame containing
values for any variables in the formula, as well as those in
groups
and subset
if applicable.x
. If
specified, ECDF plots are computed for each subset defined by unique
values of groups
and the resulting functions superposed
within each panel.panel.qqmath
.panel.xyplot
panel.ecdfplot
can be supplied directly in the high level ecdfplot
call.ecdfplot
produces an object of class "trellis"
. The
update
method can be used to update components of the object and
the print
method (usually called by default) will plot it on an
appropriate plotting device.qqmath
for Quantile plots which are
more generally useful, especially when comparing with a theoretical
distribution other than uniform. An ECDF plot is essentially a
transposed version (i.e., with axes switched) of a uniform quantile
plot.data(singer, package = "lattice")
ecdfplot(~height | voice.part, data = singer)
Run the code above in your browser using DataLab