Description Usage Arguments Value Author(s) See Also Examples
Calculate and plot the non-parametric density for the data in each column of a matrix. All densities are plotted on the same graphic.
1 2 | col_density(x, xlim = NULL, xlab = "", main = "", plot.it = TRUE,
...)
|
x |
a matrix |
xlim |
vector of length 2 giving min and max for x-axis |
xlab |
x-axis label |
main |
main title for graphic |
plot.it |
logical, should a plot be created |
... |
additional arguments passed to |
Invisibly returns a list with x and y components for the plotted density curves.
Michael Malick
1 2 3 4 5 6 | mat <- matrix(rnorm(100000), ncol = 100)
col_density(mat)
col_density(mat, main = "test")
col_density(mat, xlim = c(-4, 3))
xx <- col_density(mat, xlim = c(-4, 3))
class(xx)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.