Description Usage Arguments Value Author(s) Examples
This function takes between 1 and 5 arguments to plot the density of data, using the dens.estimator function.
1 | dens.plot(x,n=500,method="naive",from,to)
|
x |
is data given as a vector of numbers, to estimate density from. |
n |
is a positive integer that specifies the number of points to be used for plotting the density function. Defaults to 500. |
method |
is an argument that is either "naive" or "kernel", deciding the method of estimating the density. Defaults to "naive". |
from |
is a number that specifies where the plot should start. Defaults to min(x)-sd(x)/3 |
to |
is a number that specifies where the plot should end. Defaults to max(x)+sd(x)/3 |
Returns a density plot over the input data x, with information calculated depending on other inputs, or lack thereof.
Nguyen Khanh Le Ho & Emil H. Andersen
Department of Mathematics and Computer Science (IMADA)
University of Southern Denmark, Denmark
emila14@student.sdu.dk
ngho14@student.sdu.dk
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.