idSpectra: Identify spectra in a plot.

Description Usage Arguments Value Author(s) Examples

View source: R/idSpectra.R

Description

This function accepts spectra (the same ones given to plot()), allows the user to click a scan, then returns the scan name in the console and colors the selected scan red. This is useful is you are using the plotSpectra() with base_plot == TRUE, although the plotly interactive version is preferable and already interactive.

Usage

1

Arguments

spec

An object of class spectra.list or spectra.matrix.

Value

Returns an the name of the selected scan.

Author(s)

Daniel M Griffith

Examples

1
2
3
4
5
6
## Not run: 
data(shootout)
plot(shootout_scans, base_plot == TRUE)
idSpectra(shootout_scans)

## End(Not run)

griffithdan/plantspec documentation built on May 17, 2019, 8:37 a.m.