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

1
2
3
4
## S3 method for class 'dkde'
plot(x, fx = NULL, ...)
## S3 method for class 'dkde'
lines(x, ...)

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".

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.

Value

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

Author(s)

Arsalane Chouaib Guidoum acguidoum@usthb.dz

See Also

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

Examples

1
2
plot(dkde(kurtotic,deriv.order=0,kernel="gaussian"),sub="")
lines(dkde(kurtotic,deriv.order=0,kernel="biweight"),col="red")