hill_phylo | R Documentation |
Calculate alpha phylogenetic diversity based on Hill numbers
hill_phylo(
comm,
tree,
q = 0,
base = exp(1),
rel_then_pool = TRUE,
show_warning = TRUE,
return_dt = FALSE
)
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 |
return_dt |
Whether to return the Phylogenetic Hill numbers Dt, default is 'FALSE'. |
A vector of hill number based phylogenetic diversity ('PD(T)', effective total branch length) for all sites.
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(comm, tree, q = 0)
hill_phylo(comm, tree, q = 0.999)
hill_phylo(comm, tree, q = 1)
hill_phylo(comm, tree, q = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.