Skip to content
GC/LC-MS data analysis for environmental science
Branch: master
Clone or download
Latest commit d30daa5 Sep 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
R update new function for dwtus Sep 25, 2019
data add tbbpa demo data Jul 26, 2019
docs update website Sep 25, 2019
inst add option for legend Aug 23, 2018
man update new function for dwtus Sep 25, 2019
tests update the formate Oct 25, 2017
vignettes bump 0.5.5 May 14, 2019
.Rbuildignore add update to find OHC Feb 27, 2019
.gitignore del .DS_Store Oct 30, 2018
.travis.yml update travis Feb 28, 2019
DESCRIPTION update website Sep 25, 2019
NAMESPACE update new function for dwtus Sep 25, 2019 update news Sep 25, 2019 bump 0.5.5 May 14, 2019
_pkgdown.yaml update website Dec 20, 2018
enviGCMS.Rproj update to add imports Mar 4, 2019

enviGCMS: GC-MS Data Analysis for Environmental Science

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
# enviGCMS use functions in xcms to import the data, just type the path to your single sample
data1 <- enviGCMS:::getmd(‘sample1-1’)
data2 <- enviGCMS:::getmd(‘sample1-2’)
data3 <- enviGCMS:::getmd(‘sample1-3’)
data4 <- enviGCMS:::getmd(‘sample1-4’)
data5 <- enviGCMS:::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.

You can’t perform that action at this time.