Skip to contents

This function prepares species distribution maps for IAS, showing the distribution of the species at the three data sources used (GBIF, EASIN, and eLTER).

Usage

IAS_Plot(Species, FromHPC = TRUE, EnvFile = ".env", Overwrite = FALSE)

Arguments

Species

Character. The name of the species for which the distribution plot will be generated.

FromHPC

Logical indicating whether the work is being done from HPC, to adjust file paths accordingly. Default: TRUE.

EnvFile

Character. The path to the environment file containing variables required by the function. Default is ".env".

Overwrite

Logical. If TRUE, the function will overwrite existing maps; otherwise, it will skip generating a new map if one exists (default: FALSE).

Value

The function uses ggplot2 to generate a JPEG file containing the species distribution map. No object is returned.

Note

This function is not intended to be used directly by the user or in the IAS-pDT, but only used inside the IAS_Process function.

Author

Ahmed El-Gabbas