Process and map Invasive Alien Species (IAS) data for the IASDT
Source: R/DWF_IAS_process.R
, R/DWF_IAS_distribution.R
, R/DWF_IAS_plot.R
IAS_data.Rd
Processes and visualises Invasive Alien Species (IAS) distribution data from
GBIF, EASIN, and eLTER for the Invasive Alien Species Digital Twin (IASDT
).
Merges pre-processed data, creates presence-absence rasters, summarises
distributions, and generates maps using helper functions.
Usage
IAS_process(env_file = ".env", n_cores = 6L, strategy = "multisession")
IAS_distribution(species = NULL, env_file = ".env", verbose = FALSE)
IAS_plot(species = NULL, env_file = ".env")
Arguments
- env_file
Character. Path to the environment file containing paths to data sources. Defaults to
.env
.- n_cores
Integer. Number of CPU cores to use for parallel processing. Default: 6.
- strategy
Character. The parallel processing strategy to use. Valid options are "sequential", "multisession" (default), "multicore", and "cluster". See
future::plan()
andecokit::set_parallel()
for details.- species
Character. Species name for distribution mapping.
- verbose
Logical. If
TRUE
, prints progress messages. Default:FALSE
.
Functions details
IAS_process()
: Merges pre-processed GBIF (GBIF_process), EASIN (EASIN_process), and eLTER (eLTER_process) data (run these first). OutputsSpatRaster
distribution rasters, summary tables, and JPEG maps usingIAS_distribution()
andIAS_plot()
.IAS_distribution()
: Generates presence-absence maps (.RData
,.tif
) for a species, including all grid cells in the study area and a set excluding cultivated/casual-only countries. Returns a file path to a tibble with presence counts (total, by source) and summary statistics for biogeographical regionsIAS_plot()
: Creates JPEG distribution maps from GBIF, EASIN, and eLTER data usingggplot2
.