Description Usage Arguments Value See Also Examples
The plot
method for kdensity
objects.
1 2 3 4 5 6 7 8 |
x |
a |
range |
range of x values. |
plot_start |
logical; if |
zero_line |
logical; if |
... |
further plotting parameters. |
None.
1 2 3 4 5 6 7 8 9 | ## Using the data set "precip" to eye-ball the similarity between
## a kernel fit, a parametric fit, and a kernel with parametric start fit.
kde_gamma = kdensity(precip, kernel = "gaussian", start = "gamma")
kde = kdensity(precip, kernel = "gaussian", start = "uniform")
plot(kde_gamma, main = "Annual Precipitation in US Cities")
lines(kde_gamma, plot_start = TRUE, lty = 2)
lines(kde, lty = 3)
rug(precip)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.