View source: R/hill_phylo_parti.R
hill_phylo_parti | R Documentation |
Calculate overall phylogenetic diversity and site similarity across multiple sites.
hill_phylo_parti(
comm,
tree,
q = 0,
base = exp(1),
rel_then_pool = TRUE,
show_warning = TRUE,
check_data = TRUE
)
comm |
A data frame of vegetation data. Sites as rows, species as columns. |
tree |
A phylogeny with class 'phylo'. |
q |
Hill number, |
base |
default is |
rel_then_pool |
default is |
show_warning |
whether to print warning, default is |
check_data |
Whether to check the community data and phylogeny. Default is 'TRUE'. Can be set to 'FALSE' to speed up 'hill_phylo_parti_pairwise()'. |
A data frame with one row (across all sites) and six columns: q, gamma diversity, alpha diversity, beta diversity, local similarity (similar to Sorensen), and region similarity (similar to Jaccard).
Chiu & Chao, Daijiang Li
Chao, Anne, Chun-Huo Chiu, and Lou Jost. Unifying Species Diversity, Phylogenetic Diversity, Functional Diversity, and Related Similarity and Differentiation Measures Through Hill Numbers. Annual Review of Ecology, Evolution, and Systematics 45, no. 1 (2014): 297–324. <doi:10.1146/annurev-ecolsys-120213-091540>.
comm = dummy = FD::dummy$abun
tree = ape::rtree(n = ncol(comm), tip.label = paste0('sp', 1:8))
hill_phylo_parti(comm, tree, q = 0)
hill_phylo_parti(comm, tree, q = 0.999)
hill_phylo_parti(comm, tree, q = 1)
hill_phylo_parti(comm, tree, q = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.