Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Note

Only one of F2 or F1 should be given.

Author(s)

Bryan A. Hanson, DePauw University.

Examples

data(MUD1)
plotSlice(MUD1, F1 = 22, main = "Slice @ F1 = 22 ppm")

ChemoSpec2D

Exploratory Chemometrics for 2D Spectroscopy

v0.4.187
GPL-3
Authors
Bryan A. Hanson [aut, cre] (<https://orcid.org/0000-0003-3536-8246>)
Initial release
2021-03-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.