powered by
Rubberband baseline
spc.rubberband(spc, ..., upper = FALSE, noise = 0, spline = TRUE)
hyperSpec object containing the baselines
hyperSpec object
further parameters handed to smooth.spline
smooth.spline
logical indicating whether the lower or upper part of the hull should be used
noise level to be taken into account
logical indicating whether the baseline should be an interpolating spline through the support points or piecewise linear.
Claudia Beleites
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.
debuglevel >= 1
debuglevel
spc.fit.poly, spc.fit.poly.below
spc.fit.poly
spc.fit.poly.below
vignette ("baseline")
hy.setOptions
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)
Run the code above in your browser using DataLab