Pre-Process, Visualize and Analyse Process Analytical Data, by Spectral Data Measurements Made During a Chemical Process

Infrared, near-infrared and Raman spectroscopic data measured during chemical reactions, provide structural fingerprints by which molecules can be identified and quantified. The application of these spectroscopic techniques as inline process analytical tools (PAT), provides the (pharma-)chemical industry with novel tools, allowing to monitor their chemical processes, resulting in a better process understanding through insight in reaction rates, mechanistics, stability, etc. Data can be read into R via the generic spc-format, which is generally supported by spectrometer vendor software. Versatile pre-processing functions are available to perform baseline correction by linking to the 'baseline' package; noise reduction via the 'signal' package; as well as time alignment, normalization, differentiation, integration and interpolation. Implementation based on the S4 object system allows storing a pre-processing pipeline as part of a spectral data object, and easily transferring it to other datasets. Interactive plotting tools are provided based on the 'plotly' package. Non-negative matrix factorization (NMF) has been implemented to perform multivariate analyses on individual spectral datasets or on multiple datasets at once. NMF provides a parts-based representation of the spectral data in terms of spectral signatures of the chemical compounds and their relative proportions. The functionality to read in spc-files was adapted from the 'hyperSpec' package.

Author Robin Van Oirbeek [aut], Adriaan Blommaert [aut, cre], Nicolas Sauwen [aut], Tor Maes [ctb], Jan Dijkmans [ctb], Jef Cuypers [ctb], Tatsiana Khamiakova [ctb], Michel Tiel [ctb], Claudia Beleites [ctb]
Maintainer Adriaan Blommaert <>


To install this package, start R and enter:

install.packages("spectralAnalysis", repos = "", type = "source")


No vignettes available
Reference Manual


baseline, BiocGenerics, data.table, ggplot2, jsonlite, magrittr, methods, nnls, NMF, plotly, plyr, RColorBrewer, signal, stats, viridis, hNMF
System Requirements
License GPL-3

Package Downloads

Package source spectralAnalysis_3.12.0.tar.gz
Windows binary (32- & 64-bit) Not Available
MacOS X 10.6 (Snow Leopard) binary Not Available