Learn R Programming

aroma.light (version 3.2.0)

plotDensity: Plots density distributions for a set of vectors

Description

Plots density distributions for a set of vectors.

Usage

"plotDensity"(X, ..., xlab=NULL) "plotDensity"(X, ..., xlab=NULL) "plotDensity"(X, ..., xlab=NULL) "plotDensity"(X, W=NULL, xlim=NULL, ylim=NULL, xlab=NULL, ylab="density (integrates to one)", col=1:length(X), lty=NULL, lwd=NULL, ..., add=FALSE)

Arguments

X
A single of list of numeric vectors or density objects, a numeric matrix, or a numeric data.frame.
W
(optional) weights of similar data types and dimensions as X.
xlim,ylim
character vector of length 2. The x and y limits.
xlab,ylab
character string for labels on x and y axis.
col
The color(s) of the curves.
lty
The types of curves.
lwd
The width of curves.
...
Additional arguments passed to density, plot, and lines.
add
If TRUE, the curves are plotted in the current plot, otherwise a new is created.

See Also

Internally, density is used to estimate the empirical density.