Utility to review all spectra in a
Spectra object. Output depends upon the graphics
Plots each spectrum 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.
All the spectra are plotted in a single column.
An object of S3 class
Parameters to be passed to the plotting routines. Applies to base graphics only.
The returned value depends on the graphics option selected (see
None. Side effect is a plot.
The plot is displayed, and a
ggplot2 plot object is returned if the
value is assigned. The plot can be modified in the usual
Bryan A. Hanson (DePauw University), Tejasvi Gupta.
1 2 3 4 5 6 7 8 9
# Because there are 16 spectra in this data set, you probably want to # expand the height of the graphics device to see the spectra clearly. # This example assumes the graphics output is set to ggplot2 or plotly (see ?GraphicsOptions). # If you do options(ChemoSpecGraphics == "plotly") you'll get the results # in a web page, which is particularly convenient. library("ggplot2") data(metMUD1) p <- reviewAllSpectra(metMUD1) p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.