fire_exp_map_cont()
produces a standardized map of exposure with a
continuous scale. An optional area of interest can be used as a mask. The
ggplot object returned can be further modified with the ggplot library.
Arguments
- exposure
SpatRaster from
fire_exp()
- aoi
(optional) SpatVector of an area of interest to mask the exposure
Examples
# read example hazard data ----------------------------------
filepath <- "extdata/hazard.tif"
haz <- terra::rast(system.file(filepath, package = "fireexposuR"))
# -------------------------------------------------------------
exp <- fire_exp(haz)
fire_exp_map_cont(exp)
#> <SpatRaster> resampled to 501264 cells.