Usage
nos.density(data, xlab = NULL, ratio = 0.25, bw = "nrd0", kernel = "gaussian", locations = T, width = round(options()$width * 0.8), height = round(ratio * width), pch = c("o", "~"))
Arguments
data
A numeric vector containing the values to be plotted. NA and NaN are allowed, but are removed for the plot. Infinities will cause an error.
xlab
Label of the x-axis of the plot.
ratio
Coefficient that controls the aspect ratio of the plot.
bw
A numerical value or character string to specify the bandwidth used for kernel density estimation. The default setting is 'nrd0', which is the default option in density; see density for other options. kernel
A character string to specify the type of smoothing kernel used. The default setting is 'gaussian', which is the default option in density; see density for other options. locations
If TRUE, the location of the data points are plotted along the x-axis. If FALSE, then the locations of the data points are not plotted.
width
Width of the plot in points.
height
Height of the plot in points.
pch
A two dimensional vector of single-character symbols. The first symbol is for data point, and the second symbol is for the density curve.