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

View source: R/kernel.R

plot.kernel.funR Documentation

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, ...)

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.

Author(s)

Arsalane Chouaib Guidoum acguidoum@usthb.dz

See Also

kernel.fun.

Examples

## Gaussian kernel
oldpar <- par(no.readonly = TRUE)
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))

par(oldpar)

kedd documentation built on May 29, 2024, 1:45 a.m.