Learn R Programming

ChemoSpec2D (version 0.5.0)

plotSlice: Plot a Slice of a Spectra2D Object

Description

Plots a slice of a 2D spectrum stored in a Spectra2D object.

Usage

plotSlice(spectra, which = 1, F2 = NULL, F1 = NULL, showGrid = TRUE, ...)

Arguments

spectra

An object of S3 class Spectra2D.

which

A single integer specifying which 2D spectrum from which to plot the slice.

F2

A single frequency to plot. Matched to the nearest value.

F1

As for F2.

showGrid

Logical. If TRUE, show a dotted gray line at each x axis tick mark.

Additional parameters to be passed to the plotting routines.

Value

Side effect is a plot.

Examples

Run this code
# NOT RUN {
data(MUD1)
plotSlice(MUD1, F1 = 22, main = "Slice @ F1 = 22 ppm")
# }

Run the code above in your browser using DataLab