plot_quantile: Plot spectra quantiles

View source: R/plotting_functions.R

plot_quantileR Documentation

Plot spectra quantiles

Description

plot_quantile plots polygons for the quantiles of spectra per band.

Usage

plot_quantile(
  spec,
  total_prob = 0.95,
  col = rgb(0, 0, 0, 0.1),
  border = TRUE,
  add = FALSE,
  na.rm = TRUE,
  ...
)

Arguments

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.

Value

nothing. Called for its side effect.

Author(s)

Jose Eduardo Meireles

Examples

library(spectrolab)
spec  = as_spectra(spec_matrix_example, name_idx = 1)
plot_quantile(spec, total_prob = 0.5)

spectrolab documentation built on Feb. 16, 2023, 10:27 p.m.