Learn R Programming

Baseline Correction of Spectra - baseline

Installation

# Install release version from CRAN  
install.packages("baseline")  
# Install development version from GitHub  
devtools::install_github("khliland/baseline")

Contents

  • S4 interface baseline() with a range of baseline correction methods
    • 4S Peak Filling
    • Asymmetric Least Squares - ALS
    • IRLS
    • LowPass filtering
    • Median Window
    • Modified polynomial fitting
    • Peak Detection
    • Rolling Ball
    • RF baseline
    • Shirley
    • TAP
    • Common plotting function
  • Customized baseline correction
    • Interval stretch/compress for more adaptive baseline
  • Baseline optimisation for prediction and classification
    • Design of Experiments
    • Running of DoE
    • Analysis of results
  • Tcl/Tk based Graphical User Interface for baseline correction

Copy Link

Version

Install

install.packages('baseline')

Monthly Downloads

1,091

Version

1.3-6

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Kristian Hovde Liland

Last Published

June 4th, 2025

Functions in baseline (1.3-6)

funcName

Extract the "funcName" slot.
baseline.rfbaseline

Robust Baseline Estimation
baseline.rollingBall

Rolling ball
baseline.lowpass

Low-pass FFT filter
baselineAlgorithms

List of available baseline algorithms
baselineAlgResult-class

Class "baselineAlgResult"
ind.min

Extraction methods specific for "predictionResult" objects
baselineAlg-class

Class "baselineAlg"
baseline.peakDetection

Simultaneous Peak Detection and Baseline Correction
baselineAlgorithmsGUI

List of available baseline algorithms for GUI function
optimWizard

Visual tool for setting up optimization
overall.min

Extract the minimum from a baseline optimisation
param

Extract the "param" slot
doOptim

Optimise several baseline algorithms on a data set
predictionTest-class

Class "predictionTest"
plotOptim

Plotting tool for result objects from optimization
milk

MALDI-TOF mass spectra
name

Extraction methods for "baselineAlg" objects
getBaseline

Functions to extract the components of a "baseline" object
qualMeas

Extraction functions for "predictionResult" or "baselineAlgResult" objects
custom.baseline

Customized baseline correction
baselineGUI

Interactive plotting tool
ridgeRegressionTest-class

Class "ridgeRegressionTest"
predictionResult-class

Class "predictionResult"
plotBaseline

Plot method for "baseline" objects
param.ind.min

Extraction methods for "baselineAlgResult" objects
baselineEnv

Baseline environment
runTest

Run a predictionTest or baselineAlgTest
baseline-package

Baseline correction
baseline.shirley

Shirley Background Estimation
PLSRTest-class

Class "PLSRTest"
baseline-class

Class "baseline"
baseline.medianWindow

Median window
baseline.TAP

TAP
baseline.irls

Iterative Restricted Least Squares
baseline.fillPeaks

Fill peaks
algorithm

Extraction methods for "baselineAlgTest" objects
baselineAlgTest-class

Class "baselineAlgTest"
baseline

Baseline correction
XPSdata

XPS core line data
baseline.als

Asymmetric Least Squares
baseline.modpolyfit

Modified polynomial fitting