Learn R Programming

kedd (version 1.0.4)

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 dkde
plot(x, fx = NULL, ...)
# S3 method for dkde
lines(x, ...)

Value

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

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

Author

Arsalane Chouaib Guidoum acguidoum@usthb.dz

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