View source: R/fire_exp_map_cont.R
fire_exp_map_cont | R Documentation |
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.
fire_exp_map_cont(exposure, aoi, title = "Wildfire Exposure")
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 |
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.
The map will be drawn using the same CRS as the input data.
a map is returned as a ggplot object
fire_exp_map_class()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.