ps_get_comm | R Documentation |
phylospatial
community dataGet phylospatial
community data
ps_get_comm(ps, tips_only = TRUE, spatial = TRUE)
ps |
|
tips_only |
Logical indicating whether only the terminal taxa (TRUE, the default) or all taxa (FALSE) should be returned. |
spatial |
Logical indicating whether a spatial ( |
Either a SpatRaster
with a layer for every taxon, or an sf
data frame with a variable for every taxon,
depending on which data type was used to create ps
.
ps <- ps_simulate()
# the defaults return a spatial object of terminal taxa distributions:
ps_get_comm(ps)
# get distributions for all taxa, as a matrix
pcomm <- ps_get_comm(ps, tips_only = FALSE, spatial = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.