
Last chance! 50% off unlimited learning
Sale ends in
Plotting kde1d objects
# S3 method for kde1d
plot(x, ...)# S3 method for kde1d
lines(x, ...)
kde1d
object.
further arguments passed to plot.default
.
# NOT RUN {
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)
# }
Run the code above in your browser using DataLab