plot.spectra {spectrolab} | R Documentation |
Plot spectra
Description
plot
plots spectra.
Usage
## S3 method for class 'spectra'
plot(x, ylab = "value", xlab = "band", col = "black", lty = 1, type = "l", ...)
Arguments
x |
spectra object |
ylab |
label for y axis. Defaults to "value". |
xlab |
label for x axis. Defaults to "band". |
col |
line color. Defaults to "black". |
lty |
line type. Defaults to 1. |
type |
type of plot. Meant to take either line "l" or no plotting "n". |
... |
other arguments passed to matplot. |
Value
nothing. Called for side effect.
Author(s)
Jose Eduardo Meireles
Examples
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
plot(spec, lwd = 1.2)
[Package spectrolab version 0.0.19 Index]