Learn R Programming

spectrolab (version 0.0.18)

plot_quantile: 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,
  ...
)

Value

nothing. Called for its side effect.

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.

Author

Jose Eduardo Meireles

Examples

Run this code
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