Learn R Programming

ChemoSpec (version 6.1.3)

loopThruSpectra: Display the Spectra in a Spectra Object One at a Time DEPRECATED

Description

DEPRECATED: Use reviewAllSpectra instead. Plots each spectrum in a Spectra object one at a time, and waits for a return in the console before plotting the next spectrum. Use ESC to get out of the loop.

Usage

loopThruSpectra(spectra, ...)

Value

The returned value depends on the graphics option selected (see GraphicsOptions).

  • base: None. Side effect is a plot.

  • ggplot2: Returns a ggplot2 plot object. The plot can be modified in the usual ggplot2 manner.

Arguments

spectra

An object of S3 class Spectra.

...

Parameters to be passed downstream.

Author

Bryan A. Hanson (DePauw University)

Details

The ggplot2 mode plots all the Spectra objects in the dataset on a single column.

See Also

See GraphicsOptions for more information about the graphics options. Additional documentation at https://bryanhanson.github.io/ChemoSpec/