fire_exp_map_cont()
produces a standardized map of exposure
with a continuous scale for the full extent of the data or masked to an area
of interest.
Arguments
- exposure
SpatRaster from
fire_exp()
- aoi
(Optional) SpatVector of an area of interest to mask the exposure
- title
(Optional) String. A custom title for the plot. The default is
"Wildfire Exposure"
Details
This function returns a standardized map with basic cartographic elements. The exposure values are mapped using a continuous scale. There is no base map added with this function.
The plot is returned as a ggplot object which can be exported/saved to multiple image file formats.
Examples
# read example hazard data
hazard_file_path <- "extdata/hazard.tif"
hazard <- terra::rast(system.file(hazard_file_path, package = "fireexposuR"))
# Compute exposure
exposure <- fire_exp(hazard)
fire_exp_map_cont(exposure)