Learn R Programming

ChemoSpec2D (version 0.5.0)

inspectLvls: Inspect Levels for Contour Plots of Spectra2D Objects

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

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).

See Also

See pfacSpectra2D for further examples.

Examples

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab