powered by
The plot.dkde function loops through calls to the dkde function. Plot for kernel density derivative estimate for 1-dimensional data.
plot.dkde
dkde
# S3 method for dkde plot(x, fx = NULL, ...) # S3 method for dkde lines(x, ...)
Plot of 1-d kernel density derivative estimates are sent to graphics window.
object of class dkde (output from dkde).
add to graphics the true density derivative (class :function), to compare it by the density derivative to estimate.
function
other graphics parameters, see par in package "graphics".
par
Arsalane Chouaib Guidoum acguidoum@usthb.dz
The 1-d plot is a standard plot of a 1-d curve. If !is.null(fx) then a true density derivative is added.
!is.null(fx)
dkde, plot.density in package "stats" if deriv.order = 0.
plot.density
deriv.order = 0
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