dot-groupNcolor: Assign Group Membership and Colors for a Spectra or Spectra2D...

.groupNcolorR Documentation

Assign Group Membership and Colors for a Spectra or Spectra2D Object

Description

Internal function. A utility function which looks for gr.crit in the file names of .csv files and assigns group membership. Also assigns a color, and for Spectra objects, a symbol and an alternate symbol to each group. Warnings are given if there are file names that don't match entries in gr.crit or there are entries in gr.crit that don't match any file names. An internal function, not generally called by the user.

Usage

.groupNcolor(spectra, gr.crit = NULL, gr.cols = "auto", mode = "1D")

Arguments

spectra

An object of S3 class ChemoSpec::Spectra() or ChemoSpec2D::Spectra2D().

gr.crit

As per ChemoSpec::files2SpectraObject().

gr.cols

As per ChemoSpec::files2SpectraObject().

Value

A complete object of S3 class Spectra or Spectra2D. This function is the last internal step in creating these objects. Until this function has done its job, these objects will not pass checks as the assembly is not complete (see chkSpectra).

Author(s)

Bryan A. Hanson (DePauw University).

See Also

files2SpectraObject or files2Spectra2DObjectfor details; sumGroups to see the outcome.


ChemoSpecUtils documentation built on May 29, 2024, 3:12 a.m.