localBaselineCorrect {spectralAnalysis}R Documentation

Local baseline correction

Description

Substract a baseline either through 1 or 2 points

Usage

localBaselineCorrect(object, baseWavelengths = NULL)

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

Value

SpectraInTime-class with baseline subset

Author(s)

Adriaan Blommaert

Examples

spectra              <-  getSpectraInTimeExample()
spectraConstCorrect  <-  localBaselineCorrect( spectra , baseWavelengths = 240  )
spectraLinCorrect    <-  localBaselineCorrect( spectra , c( 250 , 330 )  ) 

plot( spectra )
plot( spectraConstCorrect )
plot( spectraLinCorrect ) 


[Package spectralAnalysis version 4.3.3 Index]