powered by
plot_quantile plots polygons for the quantiles of spectra per band.
plot_quantile
plot_quantile( spec, total_prob = 0.95, col = rgb(0, 0, 0, 0.1), border = TRUE, add = FALSE, na.rm = TRUE, ... )
nothing. Called for its side effect.
spectra object
total probability mass to encompass. Single number between 0.0 and 1.0. Defaults to 0.95.
polygon color
boolean. Draw border?
if add = FALSE (default), a new plot is created. Otherwise (add = TRUE), the quantile is added to the current plot.
boolean. remove NAs to compute quantiles? Defaults to TRUE
other parameters passed to polygon() or to plot.
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) plot_quantile(spec, total_prob = 0.5)
Run the code above in your browser using DataLab