Learn R Programming

ChemoSpec (version 4.2.8)

plotSpectra: Plot Spectra Object

Description

Plots the spectra stored in a Spectra object. One may choose which spectra to plot, and the x range to plot. Spectra may be plotted offset or stacked. The vertical scale is controlled by a combination of several parameters.

Usage

plotSpectra(spectra, which = c(1), yrange = range(spectra$data),
	offset = 0, amplify = 1, lab.pos = mean(spectra$freq), ...)

Arguments

Value

None. Side effect is a plot.

Rdversion

1.1

References

https://github.com/bryanhanson/ChemoSpec

See Also

plotSpectraJS for the interactive version.

Examples

Run this code
data(metMUD1)
plotSpectra(metMUD1, main = "metMUD1 NMR Data",
	which = c(10, 11), yrange = c(0,1.5),
	offset = 0.06, amplify = 10, lab.pos = 0.5)

Run the code above in your browser using DataLab