plot | R Documentation |
Plots of the smoothed function and its first 2 derivatives.
## S3 method for class 'features'
plot(x, ...)
x |
an object of |
... |
Additional arguments to be passed to the |
A plot is shown in a 2 x 2 layout, where the top 2 frames are the same and they depict the raw data and the smoothed function. The bottom left panel shows the smoothed first derivative, and the bottom right panel depicts the smoothed second derivative.
# Estimating the smooth and the derivatives of a noisy and discretely sampled function.
n <- 200
x <- sort(runif(n))
y <- exp(-0.2 * sin(2*pi*x)) + rnorm(n, sd=0.05)
ans <- features(x, y)
plot(ans)
ans.sm <- features(x, y, smoother="smooth.spline")
plot(ans.sm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.