Learn R Programming

geoSpectral (version 0.17.5)

spc.lines: Add spectra to an existing plot

Description

Adds spectra to an existing plot created by spc.plot() using lines()

Usage

spc.lines(x,...)

# S4 method for Spectra spc.lines(x, ...)

Arguments

x

An object of class Spectra

...

Additional input arguments to be passed to lines()

See Also

spc.plot

Examples

Run this code
# NOT RUN {
sp = spc.example_spectra()
spc.plot(sp[2,])
spc.lines(sp[3,],col="red")

# }

Run the code above in your browser using DataLab