faith | R Documentation |
Faith's phylogenetic diversity metric.
A higher value indicates a greater amount of evolutionary history
represented within the community, suggesting higher biodiversity in terms of
evolutionary relationships.
faith(counts, tree = NULL, cpus = n_cpus())
counts |
An OTU abundance matrix where each column is a sample, and
each row is an OTU. Any object coercible with |
tree |
A |
cpus |
How many parallel processing threads should be used. The
default, |
A numeric vector.
Given n
branches with lengths L
and a sample's
abundances on each of those branches coded as 1 for present or 0 for absent:
\sum_{i = 1}^{n} P_i \times L_i
Faith DP 1992. Conservation evaluation and phylogenetic diversity. Biological Conservation, 61:1-10. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/0006-3207(92)91201-3")}
Other alpha_diversity:
chao1()
,
inv_simpson()
,
shannon()
,
simpson()
# Example counts matrix
ex_counts
# Faith diversity values
faith(ex_counts, tree = ex_tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.