powered by
These functions can be used to sample and plot kernel profiles.
sampleKernelFunction(kernel, values)# S3 method for kernelArray plot(x, y, axis = 1, lwd = 2, col = "red", ...)# S3 method for kernelFunction plot(x, y, xlim = c(-2, 2), lwd = 2, col = "red", ...)
# S3 method for kernelArray plot(x, y, axis = 1, lwd = 2, col = "red", ...)
# S3 method for kernelFunction plot(x, y, xlim = c(-2, 2), lwd = 2, col = "red", ...)
For sampleKernelFunction a vector of kernel values at the locations requested. The plot methods are called for their side-effects.
sampleKernelFunction
plot
A kernel function object.
A vector of values to sample the function at. These are in units of pixels, with zero representing the centre of the kernel.
A kernel object of the appropriate class.
Ignored.
The axis to profile along.
The line width to use for the kernel profile.
The line colour to use for the kernel profile.
Additional plot parameters.
The limits of the range used to profile the kernel.
Jon Clayden <code@clayden.org>
kernels for kernel-generating functions.
kernels
sampleKernelFunction(mnKernel(), -2:2) plot(mnKernel())
Run the code above in your browser using DataLab