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

2,812

Version

1.3-8

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Kristian Hovde Liland

Last Published

September 18th, 2026

Functions in baseline (1.3-8)

baselineEnv

Baseline environment
baselineAlgorithmsGUI

List of available baseline algorithms for GUI function
overall.min

Extract the minimum from a baseline optimisation
predictionResult

Class "predictionResult"
baselineClass

Class "baseline"
custom.baseline

Customized baseline correction
doOptim

Optimise several baseline algorithms on a data set
predictionTest

Class "predictionTest"
milk

MALDI-TOF mass spectra
optimWizard

Visual tool for setting up optimization
predictionResultMethods

Extraction methods specific for "predictionResult" objects
qualMeas

Extraction functions for "predictionResult" or "baselineAlgResult" objects.
runTest

Run a predictionTest or baselineAlgTest
param

Extract the "param" slot
plotBaseline

Plot method for "baseline" objects
plotOptim

Plotting tool for result objects from optimization
ridgeRegressionTestClass

Class "ridgeRegressionTest"
baseline

Baseline correction
baseline.shirley

Shirley Background Estimation
PLSRTestClass

Class "PLSRTest"
baseline.lowpass

Low-pass FFT filter
XPSdata

XPS core line data
baseline.als

Asymmetric Least Squares
baselineAlgClass

Class "baselineAlg"
baselineAlg

Extraction methods for "baselineAlg" objects
baseline.fillPeaks

Fill peaks
baseline.medianWindow

Median window
baseline.rollingBall

Rolling ball
baselineAlgResultMethods

Extraction methods for "baselineAlgResult" objects
baseline.modpolyfit

Modified polynomial fitting
baseline.irls

Iterative Restricted Least Squares
algorithm

Extraction methods for "baselineAlgTest" objects
baseline.TAP

TAP
baseline-package

Baseline correction
funcName

Extract the "funcName" slot.
baselineAlgTest

Class "baselineAlgTest"
baselineAlgorithms

List of available baseline algorithms
baseline.peakDetection

Simultaneous Peak Detection and Baseline Correction
baselineAlgResult

Class "baselineAlgResult"
getSpectra

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

Interactive plotting tool
baseline.rfbaseline

Robust Baseline Estimation