ChemoSpec, spectral data sets are stored in an S3 class called
Spectra, which contains a variety of information in addition to the spectra themselves.
Spectra objects are created by
The structure of a
Spectra object is a list of 7 elements and an attribute as follows:
|$freq||num||A common frequency (or wavelength) axis for all the spectra.|
|$data||num||The intensities for the spectra. A matrix of dimension|
|no. samples x no. frequency points.|
|$names||chr||The sample names for the spectra; length must be no. samples.|
|$groups||Factor||The group classification of the samples; length must be no. samples.|
|$colors||chr||The colors for each sample; length must be no. samples.|
|Groups and colors correspond.|
|$sym||integer|| As for
|$alt.sym||chr||Lower-case letters as alternate symbols for plotting.|
|$unit||chr||Two entries, the first giving the x axis unit, the second the y axis unit.|
|$desc||chr||A character string describing the data set. This appears on plots and therefore|
|should probably be kept to 40 characters or less.|
|- attr||chr "Spectra"||The S3 class designation.|
Bryan A. Hanson, DePauw University. firstname.lastname@example.org
sumSpectra to summarize a
sumGroups to summarize group membership of a
chkSpectra to verify the integrity of a
colorSymbol for a discussion of color options.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.