multiecdf {geneplotter}R Documentation

Multiple empirical cumulative distribution functions (ecdf) and densities

Description

Plot multiple empirical cumulative distribution functions (ecdf) and densities with user interface similar to that of boxplot.

Usage

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, ...)

Arguments

formula a formula, such as y ~ grp, where y is a numeric vector of data values to be split into groups according to the grouping variable grp (usually a factor).
data a data.frame (or list) from which the variables in formula should be taken.
na.action a function which indicates what should happen when the data contain NAs. The default is to ignore missing values in either the response or the group.
x A list of numeric vectors.
xlim Range of the x axis.
col Line colors. If missing, the Set1 palette from RColorBrewer is used.
do.points logical; if TRUE, also draw points at the knot locations.
subsample logical; if TRUE, subsamples of size 1000 are used to compute and plot the ecdf for list items with many observations (>1000)
... Further arguments that get passed on to the plot functions.

Details

Value

Author(s)

Wolfgang Huber http://www.ebi.ac.uk/huber

See Also

boxplot, ecdf density

Examples

  f = 1 + (runif(1000)>0.5)
  x = rnorm(length(f), mean=f, sd=f)
  
  multiecdf(x~f)
  multidensity(x~f)

[Package geneplotter version 1.12.0 Index]