\HeaderA{multiecdf}{Multiple empirical cumulative distribution functions (ecdf)
and densities}{multiecdf}
\aliasA{multidensity}{multiecdf}{multidensity}
\methaliasA{multidensity.default}{multiecdf}{multidensity.default}
\methaliasA{multidensity.formula}{multiecdf}{multidensity.formula}
\methaliasA{multiecdf.default}{multiecdf}{multiecdf.default}
\methaliasA{multiecdf.formula}{multiecdf}{multiecdf.formula}
\keyword{hplot}{multiecdf}
\begin{Description}\relax
Plot multiple empirical cumulative distribution functions (ecdf)
and densities with user interface similar to that of \code{\LinkA{boxplot}{boxplot}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
multiecdf(x, ...)
## S3 method for class 'formula':
multiecdf(formula, data = NULL, ..., na.action = NULL)
## Default S3 method:
multiecdf(x, xlim, col, do.points=FALSE, subsample=TRUE, ...)

multidensity(x, ...)
## S3 method for class 'formula':
multidensity(formula, data = NULL, ..., na.action = NULL)
## Default S3 method:
multidensity(x, xlim, col, ...)

\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{formula}] a formula, such as \code{y \textasciitilde{} grp}, where \code{y} is a
numeric vector of data values to be split into groups according to
the grouping variable \code{grp} (usually a factor).
\item[\code{data}] a data.frame (or list) from which the variables in
\code{formula} should be taken.
\item[\code{na.action}] a function which indicates what should happen
when the data contain \code{NA}s.  The default is to ignore missing
values in either the response or the group.
\item[\code{x}] A list of numeric vectors.
\item[\code{xlim}] Range of the x axis.
\item[\code{col}] Line colors. If missing, the
\code{\LinkA{Set1}{Set1}} palette from RColorBrewer
is used.
\item[\code{do.points}] logical; if \code{TRUE}, also draw points at the knot
locations.
\item[\code{subsample}] logical; if \code{TRUE}, subsamples of size 1000 are
used to compute and plot the ecdf for list items with many
observations (\code{>1000})
\item[\code{...}] Further arguments that get passed on to the \code{plot} functions.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\end{Details}
\begin{Value}
\end{Value}
\begin{Author}\relax
Wolfgang Huber \url{http://www.ebi.ac.uk/huber}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{boxplot}{boxplot}},
\code{\LinkA{ecdf}{ecdf}}
\code{\LinkA{density}{density}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  f = 1 + (runif(1000)>0.5)
  x = rnorm(length(f), mean=f, sd=f)
  
  multiecdf(x~f)
  multidensity(x~f)
\end{ExampleCode}
\end{Examples}


