
Interactive map of a species' points, EOO and AOO (MapBiomas + fire)
Source:R/plotting.R
map_species.RdBuilds a leaflet map with the occurrence points, EOO hull and occupied AOO cells. Optionally overlays the MapBiomas land-cover raster and the MapBiomas Fire accumulated layer (fire recurrence: number of years burned), both clipped to the EOO, as toggleable layers with legends.
Arguments
- assessment
A
geoconv_assessmentfromassess_species.- species
Species name to plot (default: first assessed).
- mapbiomas
Logical; overlay the MapBiomas raster (default
TRUE).- fire
Logical; overlay the MapBiomas Fire accumulated layer (default
FALSE).- src
Optional MapBiomas LULC GeoTIFF path/URL.
- fire_src
Optional MapBiomas Fire GeoTIFF path/URL.
- max_pixels
Target maximum raster size (longest side, pixels) for the overlays (default
800).- lang
Legend language:
"pt"(default) or"en". Controls the language of the MapBiomas class labels and the fire-frequency legend.- clip
Geometry the rasters are clipped to:
"eoo"(default, the EOO hull),"aoo"(the union of occupied AOO cells) or"all"(the union of both, so the raster spans the whole range).- protected
Logical; overlay protected areas. Uses the protected-area layer already stored by
assess_species(..., protected = TRUE), or fetches it on the fly from WDPA otherwise. DefaultFALSE.- pa_src
Optional local protected-area vector file for the overlay (offline).
- pa_occ_only
Logical; when
TRUE(default) the map draws only the UCs that actually contain occurrences of the species. SetFALSEto draw every UC the range overlaps. Does not affect the EOO/AOO overlap percentages, which are computed over the whole range.