Title: | Taxonomic and distribution data for all the vascular plants present in the Iberian Peninsula and Balearic Islands |
---|---|
Description: | Check which plant taxa are present and/or endemic, and get detailed (10x10 km) distribution maps for all the vascular plants present in the Iberian Peninsula and Balearic Islands, from genus to subspecies level, based on the AFLIBER database (<doi:10.1111/geb.13363>). |
Authors: | Francisco Rodríguez-Sánchez [aut, cre] |
Maintainer: | Francisco Rodríguez-Sánchez <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.0.3 |
Built: | 2024-10-16 04:47:01 UTC |
Source: | https://github.com/Pakillo/FloraIberica |
Taxa distributions
Distributions
Distributions
Distributions
A data frame with 1,824,549 rows and 6 columns:
genus
species
subspecies
Name of the 10x10 km UTM.cell
longitude in decimal degrees
latitude in decimal degrees
https://doi.org/10.1111/geb.13363
Get a checklist of the vascular plants growing near a given point or polygon.
get_checklist(zone = NULL, sf = FALSE)
get_checklist(zone = NULL, sf = FALSE)
zone |
A vector of two numbers giving the point longitude and latitude (in that order),
an |
sf |
Logical. If FALSE (default) return a dataframe with the checklist.
If TRUE, return an |
A dataframe or sf object
As the original data (AFLIBER database) have 10-km resolution, the resulting checklist may include taxa present within 10 km distance of the point or polygon.
sitio <- c(-5, 40) head(get_checklist(sitio))
sitio <- c(-5, 40) head(get_checklist(sitio))
Get the distribution of taxa on a 10 x 10 km UTM grid. Point coordinates represent the center of each grid cell, not actual plant locations.
get_distribution(genus = NULL, species = NULL, subspecies = NULL, sf = TRUE)
get_distribution(genus = NULL, species = NULL, subspecies = NULL, sf = TRUE)
genus |
character. One or more genera to check for presence. Required,
unless |
species |
character. Optional. One or more species names to check for presence.
The length of |
subspecies |
character. Optional. One or more subspecies names to check for presence.
The length of |
sf |
Logical. Return a spatial (sf) or a plain dataframe? |
An sf object if sf = TRUE, a plain dataframe otherwise.
abies <- get_distribution("Abies") abies unique(abies$Species) # including all species in the genus pinsapo <- get_distribution("Abies", "pinsapo") pinsapo
abies <- get_distribution("Abies") abies unique(abies$Species) # including all species in the genus pinsapo <- get_distribution("Abies", "pinsapo") pinsapo
Iberian Peninsula contour
IberianPeninsula
IberianPeninsula
IberianPeninsula
A sfc_MULTIPOLYGON object with the contour of Portugal, Peninsular Spain and Balearic Islands
https://www.naturalearthdata.com/
Is taxon endemic of the Iberian Peninsula and/or Balearic Islands? That is, not present naturally elsewhere in the world.
is_endemic(genus = NULL, species = NULL, subspecies = NULL, gbif.id = NULL)
is_endemic(genus = NULL, species = NULL, subspecies = NULL, gbif.id = NULL)
genus |
character. One or more genera to check for presence. Required,
unless |
species |
character. Optional. One or more species names to check for presence.
The length of |
subspecies |
character. Optional. One or more subspecies names to check for presence.
The length of |
gbif.id |
character. Optional. |
For a genus to be considered endemic, all its species must be endemic. Likewise, for a species to be considered endemic, all its subspecies must be endemic.
A logical vector
is_endemic("Laurus") is_endemic("Aconitum") is_endemic("Aconitum", "variegatum") is_endemic("Aconitum", "napellus") is_endemic("Aconitum", "napellus", c("vulgare", "castellanum", "lusitanicum"))
is_endemic("Laurus") is_endemic("Aconitum") is_endemic("Aconitum", "variegatum") is_endemic("Aconitum", "napellus") is_endemic("Aconitum", "napellus", c("vulgare", "castellanum", "lusitanicum"))
Is taxon present in the Iberian Peninsula and/or Balearic Islands?
is_present(genus = NULL, species = NULL, subspecies = NULL, gbif.id = NULL)
is_present(genus = NULL, species = NULL, subspecies = NULL, gbif.id = NULL)
genus |
character. One or more genera to check for presence. Required,
unless |
species |
character. Optional. One or more species names to check for presence.
The length of |
subspecies |
character. Optional. One or more subspecies names to check for presence.
The length of |
gbif.id |
character. Optional. |
A logical vector
is_present("Laurus") is_present("Laurus", "nobilis") is_present("Laurus", "azorica") is_present("Laurus", c("nobilis", "azorica")) is_present(gbif.id = "3034015")
is_present("Laurus") is_present("Laurus", "nobilis") is_present("Laurus", "azorica") is_present("Laurus", c("nobilis", "azorica")) is_present(gbif.id = "3034015")
Get a map with the distribution of one or more taxa. Must provide either
an sf
object (as returned by get_distribution()
) or genus, species, subspecies...
map_distribution( distrib.sf = NULL, genus = NULL, species = NULL, subspecies = NULL, taxo.level = "species", facet = FALSE, colour = "medium sea green", include.name = TRUE, ... )
map_distribution( distrib.sf = NULL, genus = NULL, species = NULL, subspecies = NULL, taxo.level = "species", facet = FALSE, colour = "medium sea green", include.name = TRUE, ... )
distrib.sf |
An sf object as returned by |
genus |
character. One or more genera to check for presence. Required,
unless |
species |
character. Optional. One or more species names to check for presence.
The length of |
subspecies |
character. Optional. One or more subspecies names to check for presence.
The length of |
taxo.level |
character Taxonomic level to show in the map. Either 'genus', 'species' (default) or 'subspecies'. If 'subspecies' argument is provided, taxo.level is automatically changed to 'subspecies'. |
facet |
Logical. For multiple taxa, make a single map with all taxa together, or make a multipanel (facetted) figure with one panel per taxa? |
colour |
character. When there is >1 taxon, only used if facet = TRUE. |
include.name |
Logical. When there is a single taxon to map, use taxon name as title? |
... |
Further params to be passed to |
A map and ggplot2 object
laurus <- get_distribution("Laurus", "nobilis") map_distribution(laurus) map_distribution(genus = "Laurus", species = "nobilis") abies <- get_distribution("Abies") map_distribution(abies) map_distribution(abies, facet = TRUE, ncol = 1) map_distribution(abies, taxo.level = "genus") # Map all the subspecies of a species map_distribution(genus = "Berberis", species = "vulgaris", taxo.level = "subspecies") map_distribution(genus = "Berberis", species = "vulgaris", subspecies = "seroi")
laurus <- get_distribution("Laurus", "nobilis") map_distribution(laurus) map_distribution(genus = "Laurus", species = "nobilis") abies <- get_distribution("Abies") map_distribution(abies) map_distribution(abies, facet = TRUE, ncol = 1) map_distribution(abies, taxo.level = "genus") # Map all the subspecies of a species map_distribution(genus = "Berberis", species = "vulgaris", taxo.level = "subspecies") map_distribution(genus = "Berberis", species = "vulgaris", subspecies = "seroi")
Plant taxa
Taxa
Taxa
Taxa
A data frame with 6,456 rows and 11 columns:
Full taxon name
Scientific name
Endemic in the Iberian Peninsula and/or Balearic Islands (TRUE/FALSE)
genus
species
subspecies
class
order
family
GBIF unique ID for that taxon
Name of the taxon in Plants of the World database
https://doi.org/10.1111/geb.13363