Learn R Programming

rmngb (version 0.6-1)

plotDensity: Histogram and Density Plot

Description

Plot a histogram and a gaussian kernel density estimate of the data.

Usage

plotDensity(x, col = "black", lwd = 2, ...)

Arguments

x
a vector of values for which the histogram/kernel density is desired.
col
color of the kernel density line.
lwd
line width of the kernel density line.
...
additional arguments passed to plot.

Value

Nothing of interest.

See Also

hist, density.

Examples

Run this code
plotDensity(rnorm(50))

Run the code above in your browser using DataLab