spc.select: Selecting rows of a 'Spectra' object with the mouse

Description Usage Arguments Value See Also Examples

Description

This function allows the selection of Spectra rows that is drawn with spc.plot or spc.lines. Selected lines will be colored red. Pressing the escape button will end the selection process and return selecion results.

Usage

1
2
3
4
spc.select(object)

## S4 method for signature 'Spectra'
spc.select(object)

Arguments

object

A Spectra object

Value

logical Row indexes, TRUE for selected data rows.

See Also

spc.plot spc.lines

Examples

1
2
3
sp <- spc.example_spectra()
spc.plot(sp)
spc.setselected.idx(sp)<-spc.select(sp)

geoSpectral documentation built on Feb. 20, 2020, 5:08 p.m.