Learn R Programming

caliver (version 2.0.0)

plot_pdf: plot_pdf

Description

Plot PDF of fire index

Usage

plot_pdf(fire_index, thresholds, upper_limit = NULL, v_lines = NULL)

Arguments

fire_index

RasterBrick containing the fire index

thresholds

thresholds calculated using the function get_fire_danger_levels()

upper_limit

FWI upper limit to visualise (the default is the maximum FWI)

v_lines

named vector of values to plot as vertical lines (this can be quantiles for comparison)

Examples

Run this code
# NOT RUN {
  r <- readRDS(system.file("extdata", "RISICO_raster.rds", package = "caliver"))
  plot_pdf(r, thresholds = c(5.2, 11.2, 21.3, 38, 50))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab