Learn R Programming

kedd (version 1.0.2)

plot.dkde: Plot for Kernel Density Derivative Estimate

Description

The plot.dkde function loops through calls to the dkde function. Plot for kernel density derivative estimate for 1-dimensional data.

Usage

## S3 method for class 'dkde':
plot(x, fx = NULL, \dots)
## S3 method for class 'dkde':
lines(x, \dots)

Arguments

x
object of class dkde (output from dkde).
fx
add to graphics the true density derivative (class :function), to compare it by the density derivative to estimate.
...
other graphics parameters, see par in package graphics.

Value

  • Plot of 1-d kernel density derivative estimates are sent to graphics window.

newcommand

\CRANpkg

href

http://CRAN.R-project.org/package=#1

pkg

#1

Details

The 1-d plot is a standard plot of a 1-d curve. If !is.null(fx) then a true density derivative is added.

See Also

dkde, plot.density in package stats if deriv.order = 0.

Examples

Run this code
plot(dkde(kurtotic,deriv.order=0,kernel="gaussian"),sub="")
lines(dkde(kurtotic,deriv.order=0,kernel="biweight"),col="red")

Run the code above in your browser using DataLab