baseline_corr {RGCxGC} | R Documentation |
'baseline_corr' provides a two-dimensional baseline correction by using the asymmetric least squares algorithm.
baseline_corr(chromatogram, ...)
chromatogram |
a raw_GCxGC object. |
... |
other parameters passed to |
This function takes a raw two-dimensional chromatogram and performs
the baseline correction with the implemented function in
baseline.corr
(Eilers 2004).
Eilers PH (2004). “Parametric Time Warping.” Analytical Chemistry, 76(2), 404–411.
library(colorRamps)
chrom_name <- system.file("extdata", "08GB.cdf", package = "RGCxGC")
chrom_2D <- read_chrom(chrom_name, 5L)
chrom_bsline <- baseline_corr(chrom_2D)
plot(chrom_bsline, nlevels = 150,
color.palette = matlab.like)