Learn R Programming

kedd (version 1.0.2)

plot.kernel.fun: Plot of r'th Derivative Kernel Function

Description

The plot.kernel.fun function loops through calls to the kernel.fun function. Plot for r'th derivative kernel function one-dimensional.

Usage

## S3 method for class 'kernel.fun':
plot(x, \dots)

Arguments

x
object of class kernel.fun (output from kernel.fun).
...
other graphics parameters, see par in package graphics.

Value

  • Plot of 1-d for r'th derivative kernel function are sent to graphics window.

newcommand

\CRANpkg

href

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

pkg

#1

See Also

kernel.fun.

Examples

Run this code
## Gaussian kernel

dev.new()
par(mfrow=c(2,2))
plot(kernel.fun(kernel="gaussian",deriv.order=0))
plot(kernel.fun(kernel="gaussian",deriv.order=1))
plot(kernel.fun(kernel="gaussian",deriv.order=2))
plot(kernel.fun(kernel="gaussian",deriv.order=3))

## Silverman kernel

dev.new()
par(mfrow=c(2,2))
plot(kernel.fun(kernel="silverman",deriv.order=0))
plot(kernel.fun(kernel="silverman",deriv.order=1))
plot(kernel.fun(kernel="silverman",deriv.order=2))
plot(kernel.fun(kernel="silverman",deriv.order=3))

Run the code above in your browser using DataLab