fire_freq.Rd
fire_freq
calculates the fire frequency metrics from the data stored
in the list constructed from the assemble_data()
function.
fire_freq(data, products = TRUE)
a data list object created from assemble_data()
default TRUE. Renders yslb products to ./outputs
A list containing the four fire frequency products and if
products = TRUE
a folder containing rendered products.
The function calculates fire frequency both spatially and as area statements for the area of interest (aoi) and for the time period defined in the previously constructed data list. The function will create a list object containing four items:
A fire frequency raster object (class SpatRaster)
A ggplot object of a 'map' showing the fire frequency raster
A data frame of fire frequency area stats
A ggplot object of a column plot showing area by fire frequency
Using default parameters, the function also outputs the four items to a created folder ("outputs") in the working directory. All outputs are named by aoi and time period to differentiate products. Note the fire frequency raster and product are projected to Albers GDA2020 (epsg:9473).
if (FALSE) {
ffreq_list <- fire_freq(data = data_list, products = TRUE)
}