spectralAnalysis (version 4.3.3)

localBaselineCorrect: Local baseline correction

Description

Substract a baseline either through 1 or 2 points

Usage

localBaselineCorrect(object, baseWavelengths = NULL)

Value

SpectraInTime-class with baseline subset

Arguments

object

SpectraInTime-class

baseWavelengths

numeric vector of 1 or 2 wavelength use to draw a baseline trough, defaults to NULL when no baseline correction is performed

Author

Adriaan Blommaert

Examples

Run this code
spectra              <-  getSpectraInTimeExample()
spectraConstCorrect  <-  localBaselineCorrect( spectra , baseWavelengths = 240  )
spectraLinCorrect    <-  localBaselineCorrect( spectra , c( 250 , 330 )  ) 
# \donttest{
plot( spectra )
plot( spectraConstCorrect )
plot( spectraLinCorrect ) 
# }

Run the code above in your browser using DataLab