spc.loess | R Documentation |
loess
.Applying loess
to each of the spectra, an interpolation onto a new
wavelength axis is performed. At the same time, the specta are smoothed in order to increase the
signal : noise ratio. See loess
and loess.control
on
the parameters that control the amount of smoothing.
spc.loess(spc, newx, enp.target = nwl(spc)/4, surface = "direct", ...)
spc |
the |
newx |
wavelengh axis to interpolate on |
enp.target , surface , ... |
parameters for |
a new hyperspec
object.
C. Beleites
loess
, loess.control
plot (flu, col = "darkgray")
plot (spc.loess(flu, seq (420, 470, 5)), add = TRUE, col = "red")
flu [[3, ]] <- NA_real_
smooth <- spc.loess(flu, seq (420, 470, 5))
smooth [[, ]]
plot (smooth, add = TRUE, col = "blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.