Learn R Programming

⚠️There's a newer version (6.2.0) of this package.Take me there.

   

       

What is ChemoSpec?

ChemoSpec is a collection of functions for top-down exploratory data analysis of spectral data including nuclear magnetic resonance (NMR), infrared (IR), Raman, X-ray fluorescence (XRF) and other similar types of spectroscopy. Includes functions for plotting and inspecting spectra, peak alignment, hierarchical cluster analysis (HCA), principal components analysis (PCA) and model-based clustering. Robust methods appropriate for this type of high-dimensional data are available. ChemoSpec is designed for structured experiments, such as metabolomics investigations, where the samples fall into treatment and control groups. Graphical output is formatted consistently for publication quality plots. ChemoSpec is intended to be very user friendly and to help you get usable results quickly. A vignette covering typical operations is available.

Learn more about ChemoSpec

Installing ChemoSpec from CRAN:

chooseCRANmirror() # choose a CRAN mirror
install.packages("ChemoSpec")
library("ChemoSpec")

Installing ChemoSpec from Github:

install.packages("remotes")
library("remotes")
install_github(repo = "bryanhanson/ChemoSpec@main")
library("ChemoSpec")

If you use @some_other_branch you can download other branches that might be available. They may or may not pass CRAN checks and thus may not install automatically using the method above. Check the NEWS file to see what's up.

Also...

ChemoSpec requires ChemoSpecUtils to work. It should install automatically, but if not, you can use a command similar to the above to install it.

To view the Vignettes:

To access the vignettes, use the following, or visit here.

browseVignettes("ChemoSpec")

Code of Conduct

This project is released with a Contributor Code of Conduct. By contributing, you agree to abide by its terms.

Contributing

If you would like to contribute to the project, please see Contributing Guide.

License Information

ChemoSpec is distributed under the GPL-3 license, as stated in the DESCRIPTION file. For more info, see the GPL site.

Questions? hanson@depauw.edu

Copy Link

Version

Install

install.packages('ChemoSpec')

Monthly Downloads

1,096

Version

6.1.4

License

GPL-3

Maintainer

Bryan Hanson

Last Published

October 21st, 2022

Functions in ChemoSpec (6.1.4)

SrE.IR

IR and NMR Spectra of Serenoa repens (Saw Palmetto) Oil Extracts and Reference Oils
chkSpectra

Verify the Integrity of a Spectra or Spectra2D Object
hcaScores

HCA on PCA/MIA/PARAFAC scores from a Spectra or Spectra2D Object
files2SpectraObject

Import Data into a Spectra Object
aovPCAloadings

Plot aovPCAscores Loadings of a Spectra Object
conColScheme

Change the Color Scheme of a Spectra or Spectra2D Object
mclust3dSpectra

mclust Analysis of a Spectra Object in 3D
chkGraphicsOpt

Check the Graphics Output Option/Mode
check4Gaps

Check for Discontinuities (Gaps) in a Vector & Optionally Make a Plot
pcaDiag

Outlier Diagnostic Plots for PCA of a Spectra Object
hmapSpectra

Seriated Heat Map for a Spectra Object
clupaSpectra

Hierarchical Cluster-Based Peak Alignment on a Spectra Object
mclustSpectra

mclust Analysis of a Spectra Object PCA Results
hcaSpectra

Plot HCA Results of a Spectra Object
removeFreq

Remove Frequencies from a Spectra or Spectra2D Object
sumGroups

Summarize the Group Membership of a Spectra or Spectra2D Object
metMUD1

Made Up NMR Data Sets
cv_pcaSpectra

Cross-Validation of Classical PCA Results for a Spectra Object
plotSpectra

Plot Spectra Object
irlba_pcaSpectra

IRLBA PCA of Spectra Objects
hypTestScores

Conduct MANOVA using PCA Scores and Factors in a Spectra Object
plotSpectraDist

Plot the Distance Between Spectra and a Reference Spectrum in a Spectra Object
r_pcaSpectra

Robust PCA of a Spectra Object
plotScores

Plot Scores from PCA, MIA or PARAFAC Analysis of a Spectra or Spectra2D Object
sumSpectra

Summarize a Spectra or Spectra2D Object
evalClusters

Evaluate or Compare the Quality of Clusters Quantitatively
removeGroup

Remove Groups from a Spectra or Spectra2D Object
sgfSpectra

Apply Savitzky-Golay filters to a Spectra object
splitSpectraGroups

Create New Groups from an Existing Spectra Object
plotSpectraJS

Plot a Spectra Object Interactively
plot2Loadings

Plot PCA Loadings from a Spectra Object Against Each Other
plot3dScores

3D PCA Score Plot for a Spectra Object
rowDist

Compute Distance Between Rows of a Matrix
plotScree

Scree Plots from PCA or MIA Analysis of a Spectra or Spectra2D Object
normSpectra

Normalize a Spectra Object
reviewAllSpectra

Review All the Spectra in a Spectra Object
removeSample

Remove Samples from a Spectra or Spectra2D Object
sPlotSpectra

s-Plot of Spectra Data (Post PCA)
sampleDist

Compute the Distances Between Samples in a Spectra or Spectra2D Object
s_pcaSpectra

Sparse PCA of Spectra Objects
surveySpectra

Plot Measures of Central Tendency and Spread for a Spectra Object
updateGroups

Update Group Names in a Spectra or Spectra2D Object
plotLoadings

Plot PCA Loadings for a Spectra Object
aov_pcaSpectra

ANOVA-PCA Analysis of Spectra Data
colorSymbol

Color and Symbols in ChemoSpec and ChemoSpec2D
averageReplicates

Average Replicates in a Spectra Object
c_pcaSpectra

Classical PCA of Spectra Objects
Spectra

Spectra Objects
ChemoSpec-package

Exploratory Chemometrics for Spectroscopy
aovPCAscores

Plot ANOVA-PCA Scores from a Spectra Object
baselineSpectra

Baseline Correction of a Spectra Object
binSpectra

Bin or Bucket a Spectra Object