In plots using methods from the baseline package, the x axis ticks give the
data point index, not the original values from your data. Note that you
cannot zoom the non-interactive display of corrected spectra because the
underlying function hardwires the display. Try the interactive version
instead (int = TRUE
), or use plotSpectra
on the
corrected data.
In addition to the methods provided by baseline
, you can also use
method = "linear"
. This correction is handled locally, and is very
simple: a line is drawn from the first data point to the last, and this
becomes the new baseline. This is most suitable for cases in which the
baseline rises or falls steadily, as is often seen in chromatograms.