plot.kde1d | R Documentation |
Plotting kde1d objects
## S3 method for class 'kde1d'
plot(x, ...)
## S3 method for class 'kde1d'
lines(x, ...)
x |
|
... |
further arguments passed to |
kde1d
lines.kde1d
data(wdbc) # load data
fit <- kde1d(wdbc[, 7]) # estimate density
plot(fit) # plot density estimate
fit2 <- kde1d(as.ordered(wdbc[, 1])) # discrete variable
plot(fit2, col = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.