View source: R/subtr_baseline.R
subtr_baseline | R Documentation |
This baseline correction routine iteratively finds the baseline of a spectrum using a polynomial fitting or accepts a manual baseline.
subtr_baseline(x, ...)
## Default S3 method:
subtr_baseline(x, ...)
## S3 method for class 'OpenSpecy'
subtr_baseline(
x,
type = "polynomial",
degree = 8,
raw = FALSE,
baseline,
make_rel = TRUE,
...
)
x |
a list object of class |
type |
one of |
degree |
the degree of the polynomial. Must be less than the number of
unique points when raw is |
raw |
if |
baseline |
an |
make_rel |
logical; if |
... |
further arguments passed to |
This is a translation of Michael Stephen Chen's MATLAB code written for the
imodpolyfit
routine from Zhao et al. 2007.
subtr_baseline()
returns a data frame containing two columns named
"wavenumber"
and "intensity"
.
Win Cowger, Zacharias Steinmetz
Chen MS (2020). Michaelstchen/ModPolyFit. MATLAB. Retrieved from https://github.com/michaelstchen/modPolyFit (Original work published July 28, 2015)
Zhao J, Lui H, McLean DI, Zeng H (2007). “Automated Autofluorescence Background Subtraction Algorithm for Biomedical Raman Spectroscopy.” Applied Spectroscopy, 61(11), 1225–1232. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1366/000370207782597003")}.
poly()
;
smooth_intens()
data("raman_hdpe")
subtr_baseline(raman_hdpe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.