View source: R/italic_distribution_map.R
italic_distribution_map | R Documentation |
Creates a distribution map for a given lichen species based on its commonness/rarity
status across Italian ecoregions and presence/absence across administrative regions.
The map visually represents the data obtained from
italic_ecoregions_distribution()
and italic_regions_distribution()
.
italic_distribution_map(sp_name, plot_map = TRUE)
sp_name |
Character string representing the accepted scientific name of a lichen species. |
plot_map |
If TRUE (default) the function returns a ggplot graph, if FALSE returns a sf object |
The function internally utilizes italic_ecoregions_distribution()
and italic_regions_distribution()
to retrieve the commonness/rarity
status across Italian ecoregions and presence/absence across administrative regions data for the provided species.
It then joins this data with a geospatial dataset of Italian regions and ecoregions (included in the package) to generate the map.
Commonness/rarity categories are visualized with a color scale, where each color corresponds to a different level of commonness/rarity ("extremely common", "very common", "common", "rather common", "rather rare", "rare", "very rare", "extremely rare", "absent").
if plot_map = TRUE (default) a ggplot
object representing the distribution map where Italian areas are colored according to the species' commonness/rarity. If plot_map = FALSE the sf object used to create the plot
Before using this function, ensure that you have obtained the accepted name of the
lichen using italic_match()
.
Example workflow:
name_matched <- italic_match("Cetraria islandica") map <- italic_distribution_map(name_matched$accepted_name)
For more information about Italian ecoregions see ITALIC ecoregions distribution https://italic.units.it/?procedure=base&t=59&c=60#commonness and the scientific publication describing the ecoregions used in ITALIC https://www.mdpi.com/1424-2818/12/8/294
## Not run:
italic_distribution_map("Flavoparmelia caperata (L.) Hale")
italic_distribution_map("Anisomeridium biforme (Schaer.) R.C. Harris")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.