Work with Hyperspectral Data, i.e. Spectra + Meta Information (Spatial, Time, Concentration, ...)

Comfortable ways to work with hyperspectral data sets. I.e. spatially or time-resolved spectra, or spectra with any other kind of information associated with each of the spectra. The spectra can be data as obtained in XRF, UV/VIS, Fluorescence, AES, NIR, IR, Raman, NMR, MS, etc. More generally, any data that is recorded over a discretized variable, e.g. absorbance = f(wavelength), stored as a vector of absorbance values for discrete wavelengths is suitable.



o plotc is now a lattice function

o plotc and plotmap gained a standard formula interface

o plotvoronoi is an alternative to plotmap for non-rectangularly spaced grids

o plot (x, "mat") is an abbreviation to plot the spectra matrix

o The special handling of MARGINS in apply changed to be more consistent with standard behaviour apply (x, 1 : 2, FUN, ...) is now calling FUN for each element of the spectra matrix, and apply (x, , FUN, ...) calls FUN with the complete spectra matrix.

o hyperSpec now reads the binary file formats .spc as well as ENVI files.
There are two specialized functions to import Nicolet FTIR Images (ENVI) and Kaiser Raman maps (spc)

o collapse rbinds a list of hyperSpec object that may have different wavelength axes

o a more general way to combine two hyperSpec objects is merge.


o Plotting functions are discussed in a separate vignette "plotting" now

o Import- and Export functions for diverse file formats are discussed in vignette "fileio"

Reference manual

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


0.100.0 by Claudia Beleites, a month ago (documentation), (code)

Report a bug at

Browse source code at

Authors: Claudia Beleites [aut, cre, dtc] , Valter Sergo [aut] , Alois Bonifacio [ctb, dtc] , Marcel Dahms [ctb] , Björn Egert [ctb] , Simon Fuller [ctb] , Vilmantas Gegzna [ctb] , Rustam Guliev [ctb] , Bryan A. Hanson [ctb] , Michael Hermes [ctb] , Martin Kammer [dtc] , Roman Kiselev [ctb] , Sebastian Mellor [ctb]

Documentation:   PDF Manual  

Task views:

GPL (>= 3) license

Imports testthat, methods, utils, latticeExtra, lazyeval, dplyr

Depends on lattice, grid, ggplot2, xml2

Suggests R.matlab, tripack, deldir, rgl, plotrix, sp, baseline, compiler, inline, Rcpp, MASS, fastcluster, pls, mvtnorm, digest, reshape, devtools, R.rsp, tibble

Imported by OpenSpecy.

Suggested by ChemoSpec, photobiologyInOut.

See at CRAN