Skip to contents

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.

Usage

fire_exp_map_cont(exposure, aoi)

Arguments

exposure

SpatRaster from fire_exp()

aoi

(optional) SpatVector of an area of interest to mask the exposure

Value

a map is returned as a ggplot object

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.