Description Usage Arguments Details Value Note Author(s) See Also Examples
Rubberband baseline
1 | spc.rubberband(spc, ..., upper = FALSE, noise = 0, spline = TRUE)
|
spc |
hyperSpec object |
... |
further parameters handed to |
upper |
logical indicating whether the lower or upper part of the hull should be used |
noise |
noise level to be taken into account |
spline |
logical indicating whether the baseline should be an interpolating spline through the support points or piecewise linear. |
Baseline with support points determined from a convex hull of the spectrum.
Use debuglevel >= 1
to obtain debug plots, either directly via function argument or by setting hyperSpec's debuglevel
option.
hyperSpec object containing the baselines
This function is still experimental
Claudia Beleites
spc.fit.poly
, spc.fit.poly.below
1 2 3 4 5 | plot (paracetamol [,, 175 ~ 1800])
bl <- spc.rubberband (paracetamol [,, 175 ~ 1800], noise = 300, df = 20)
plot (bl, add = TRUE, col = 2)
plot (paracetamol [,, 175 ~ 1800] - bl)
|
Loading required package: lattice
Loading required package: grid
Loading required package: ggplot2
Package hyperSpec, version 0.98-20161118
To get started, try
vignette ("introduction", package = "hyperSpec")
package?hyperSpec
vignette (package = "hyperSpec")
If you use this package please cite it appropriately.
citation("hyperSpec")
will give you the correct reference.
The project homepage is http://hyperspec.r-forge.r-project.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.