View source: R/hill_phylo_parti_pairwise.R
hill_phylo_parti_pairwise | R Documentation |
Calculate pairwise phylogenetic diversity.
hill_phylo_parti_pairwise(
comm,
tree,
q = 0,
output = c("data.frame", "matrix"),
pairs = c("unique", "full"),
rel_then_pool = TRUE,
.progress = TRUE,
show_warning = TRUE,
...
)
comm |
A data frame of vegetation data. Sites as rows, species as columns. |
tree |
A phylogeny with class 'phylo'. |
q |
Hill number, |
output |
output type: data.frame (default) or matrix. If matrix, then this function will return a list of matrices. |
pairs |
full or unique (default). Do you want to compare all possible pairs (i.e. n^2) or just unique pairs (i.e. |
rel_then_pool |
default is |
.progress |
Whether to show progress bar. Default is 'TRUE'. |
show_warning |
whether to print warning, default is |
... |
additional arguments for |
A data frame or a matrix with results for all pairwise comparisons.
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>.
hill_phylo_parti
## Not run:
comm = dummy = FD::dummy$abun
tree = ape::rtree(n = ncol(comm), tip.label = paste0('sp', 1:8))
hill_phylo_parti_pairwise(comm, tree, q = 0, show_warning = FALSE)
hill_phylo_parti_pairwise(comm, tree, q = 0.999, show_warning = FALSE)
hill_phylo_parti_pairwise(comm, tree, q = 1, show_warning = FALSE)
hill_phylo_parti_pairwise(comm, tree, q = 2, show_warning = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.