View source: R/plotting_functions.R
plot.spectra | R Documentation |
plot
plots spectra.
## S3 method for class 'spectra' plot(x, ylab = "value", xlab = "band", col = "black", lty = 1, type = "l", ...)
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. |
nothing. Called for side effect.
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) plot(spec, lwd = 1.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.