Skip to contents

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.

Usage

fire_exp_map_cont(exposure, aoi, title = "Wildfire Exposure")

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"

Value

a map is returned as a ggplot object

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.

Spatial Reference

The map will be drawn using the same CRS as the input data.

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)