plot.kde1d: Plotting kde1d objects

View source: R/kde1d.R

plot.kde1dR Documentation

Plotting kde1d objects

Description

Plotting kde1d objects

Usage

## S3 method for class 'kde1d'
plot(x, ...)

## S3 method for class 'kde1d'
lines(x, ...)

Arguments

x

kde1d object.

...

further arguments passed to plot.default.

See Also

kde1d lines.kde1d

Examples

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)


kdevine documentation built on June 22, 2024, 10:52 a.m.