inspectLvls: Inspect Levels for Contour Plots of Spectra2D Objects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/inspectLvls.R

Description

Given a Spectra2D object, this function will assist in selecting levels for preparing contour and image type plots. Any of the arguments to calcLvls can be used to compute the levels, or you can choose your own by inspection.

Usage

1
inspectLvls(spectra, which = 1, ...)

Arguments

spectra

An object of S3 class Spectra2D.

which

Integer. The spectrum/spectra to be analyzed. If a vector, the intensities are combined.

...

Arguments to be passed downstream to calcLvls and/or the plot function (e.g. ylim).

Value

A numeric vector giving the levels (invisibly).

Author(s)

Bryan A. Hanson, DePauw University. hanson@depauw.edu

See Also

See pfacSpectra2D for further examples.

Examples

1
2
3
data(MUD1)
inspectLvls(MUD1, ylim = c(0, 300), main = "MUD1 Spectrum 1, mode = even")
inspectLvls(MUD1, ylim = c(0, 300), mode = "NMR", main = "MUD1 Spectrum 1, mode = NMR")

ChemoSpec2D documentation built on Oct. 11, 2021, 9:06 a.m.