spc.smooth.spline | R Documentation |
Smoothing splines
spc.smooth.spline(spc, newx = wl(spc), ...)
spc |
hyperSpec object |
newx |
wavelengh axis to interpolate on |
... |
further parameters handed to |
Spectral smoothing by splines
hyperSpec object containing smoothed spectra
This function is still experimental
Claudia Beleites
spc.loess
smooth.spline
p <- paracetamol [,,2200 ~ max]
plot (p, col = "gray")
smooth <- spc.smooth.spline (p [,, c (2200 ~ 2400, 2500 ~ 2825, 3150 ~ max)],
wl (paracetamol [,, 2200 ~ max]),
df = 4, spar = 1)
plot (smooth, col = "red", add = TRUE)
plot (p - smooth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.