Learn R Programming

ChemoSpecUtils (version 1.0.5)

.getLimits: Process Limits for a Spectra2D Plot

Description

Internal function. Get limits from a user specified formula (used in ChemoSpec2D::removeFreq() and ChemoSpec2D::removePeaks2D()). The user may not know or think about whether F2 or F1 is ascending or descending so we will try to get it right no matter how the user gives the formula; e.g. 6 ~ 3 ought to be handled as 3 ~ 6.

Usage

.getLimits(spectra, dim, form)

Value

An object of S3 class ChemoSpec2D::Spectra2D().

Arguments

spectra

An object of S3 class ChemoSpec2D::Spectra2D().

dim

The dimension for which the limits are desired.

form

A formula specification.

Author

Bryan A. Hanson (DePauw University).