GC/LC-MS Data Analysis for Environmental Science

Gas/Liquid Chromatography-Mass Spectrometer(GC/LC-MS) Data Analysis for Environmental Science. This package covered topics such as raw data process, molecular isotope ratio, matrix effects and Short-Chain Chlorinated Paraffins analysis etc. in environmental analysis.

CRAN status Download counter Project Status: Active - The project has reached a stable, usable state and is being actively developed. Build status

enviGCMS provides functions for GC/LC-MS data analysis for environmental sciences.


You can either use the stable version of enviGCMS from CRAN,


or the current development snapshot from this GitHub repository:



  • get the mean and RSD of one sample for 5 technique replicate
data1 <- getmd(‘sample1-1’)
data2 <- getmd(‘sample1-2’)
data3 <- getmd(‘sample1-3’)
data4 <- getmd(‘sample1-4’)
data5 <- getmd(‘sample1-5’)
  • get the mean
data <- (data1+data2+data3+data4+data5)/5
  • get the standard deviation
datasd <- sqrt(((data1-data)^2+(data2-data)^2+(data3-data)^2+(data4-data)^2+(data5-data)^2)/4)
  • get the RSD
databrsd <- datasd/data
  • plot the smooth scatter
  • plot the heatmap
  • plot the mz-rt scatter plot
  • plot the boundary model

Detailed usage of those functions in Environmental analysis could be found in this paper and the vignettes in this package.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.5.0 by Miao YU, 25 days ago


Browse source code at https://github.com/cran/enviGCMS

Authors: Miao YU [aut, cre] (<https://orcid.org/0000-0002-2804-6014>)

Documentation:   PDF Manual  

GPL-2 license

Imports xcms, MSnbase, rcdk, RColorBrewer, mixtools, BiocParallel, genefilter, grDevices, graphics, stats, utils, methods, reshape2, animation, rmarkdown, shiny, broom

Suggests knitr, testthat

See at CRAN