Learn R Programming

geoSpectral (version 0.17.5)

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

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

spc.select(object)

# S4 method for 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

Run this code
# NOT RUN {
sp <- spc.example_spectra()
spc.plot(sp)
spc.setselected.idx(sp)<-spc.select(sp)

# }

Run the code above in your browser using DataLab