Description Usage Arguments Value Author(s) Examples
Use the density.estimate() and plot the density function.
1 | dens.plot(x, n, method, from, to)
|
x |
is a numeric variable. |
n |
is the number of points to the plot. n has to be a positive integer. |
method |
is either the naive estimator or the Gaussian kernel estimator. The default is the naive estimator. |
from |
is the point, you are plotting from. |
to |
is the point, you are plotting to. |
The function gives a plot of the density, either naive or Gaussian kernel.
Tobias Mortensen
Department of mathematics and computer science (IMADA)
University of southern Denmark, Odense
tomor14@student.sdu.dk
1 | density.plot(x=cars$dist, n=300, method="naive", from=2, to=100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.