View source: R/plotting_functions.R
plot_quantile | R Documentation |
plot_quantile
plots polygons for the quantiles of spectra per band.
plot_quantile( spec, total_prob = 0.95, col = rgb(0, 0, 0, 0.1), border = TRUE, add = FALSE, na.rm = TRUE, ... )
spec |
spectra object |
total_prob |
total probability mass to encompass. Single number between 0.0 and 1.0. Defaults to 0.95. |
col |
polygon color |
border |
boolean. Draw border? |
add |
if add = FALSE (default), a new plot is created. Otherwise (add = TRUE), the quantile is added to the current plot. |
na.rm |
boolean. remove NAs to compute quantiles? Defaults to TRUE |
... |
other parameters passed to polygon() or to plot. |
nothing. Called for its side effect.
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) plot_quantile(spec, total_prob = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.