View source: R/wcvp_distribution.R
wcvp_distribution | R Documentation |
Generate spatial distribution objects for species, genera or families
wcvp_distribution( taxon, taxon_rank = c("species", "genus", "family", "order", "higher"), native = TRUE, introduced = TRUE, extinct = TRUE, location_doubtful = TRUE, wcvp_names = NULL, wcvp_distributions = NULL )
taxon |
Character. The taxon to be mapped. Must be provided. |
taxon_rank |
Character. One of "species", "genus", "family", "order" or "higher", giving the rank of the value in |
native |
Logical. Include native range? Defaults to |
introduced |
Logical. Include introduced range? Defaults to |
extinct |
Logical. Include extinct range? Defaults to |
location_doubtful |
Logical. Include occurrences that are thought to be
doubtful? Defaults to |
wcvp_names |
A data frame of taxonomic names from WCVP version 7 or later.
If |
wcvp_distributions |
A data frame of distributions from WCVP version 7 or later.
If |
Where taxon_rank
is higher than species, the distribution of the whole
group will be returned, not individual species within that group. This also applies when
toggling options - for example, introduced occurrences will only be included if they are
outside the native range, regardless of whether native=TRUE
or native=FALSE
.
To identify extinctions, introductions or doubtful occurrences within the native range,
the wcvp_summary
and wcvp_occ_mat
functions can be used.
Simple features (sf
) data frame containing the range polygon/s of the taxon.
# this example requires 'rWCVPdata' if(requireNamespace("rWCVPdata")){ r <- wcvp_distribution("Callitris", taxon_rank = "genus") p <- wcvp_distribution_map(r) p }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.