calc_alpha_div | R Documentation |
Faith's Phylogenetic Diversity ("PD") can be calculated only if a tree is provided. The tree can have extra tips, but there must be tip labels for all taxa in the provided table.
calc_alpha_div(df, tree = NULL, index = c("nobs", "shannon", "PD"))
df |
sample x taxon abundance table (usual format for vegan) |
tree |
tree with tips matching taxa in the abundance table (only needed for PD) |
index |
which of the indices to calculate? (nobs = no. of observations, shannon = Shannon Index, PD = Faith's PD) |
a data.frame of alpha diversity values (and sample names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.