fire_exp_map_cont {fireexposuR} | R Documentation |
Map exposure with a continuous scale
Description
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 |
aoi |
(Optional) SpatVector of an area of interest to mask the exposure |
title |
(Optional) String. A custom title for the plot. The default
is |
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.
Value
a map is returned as a ggplot object
See Also
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)
[Package fireexposuR version 1.1.0 Index]