powered by
plot plots spectra.
plot
# S3 method for spectra plot(x, ylab = "value", xlab = "band", col = "black", lty = 1, type = "l", ...)
spectra object
label for y axis. Defaults to "value".
label for x axis. Defaults to "band".
line color. Defaults to "black".
line type. Defaults to 1.
type of plot. Meant to take either line "l" or no plotting "n".
other arguments passed to matplot.
nothing. Called for side effect.
# NOT RUN { library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) plot(spec, lwd = 1.2) # }
Run the code above in your browser using DataLab