View source: R/get_taxonomical_tree.R
get_taxonomical_tree | R Documentation |
Internally use the as.phylo.formula from the ape R package. Internally parse the name of the taxonomical hierarchy to a formula. Works with a table which columns are the taxonomic hierarchy from left to right.
get_taxonomical_tree(tax_table, power = 1)
tax_table |
A data frame (or tibble) with taxonomic information. |
power |
The power at which heights must be raised according to Grafen's (1989) computation of branch lengths. Use taxonomic hierarchy (class, order, family genus, species) as columns. Default is 1 to get distances as integer numbers. |
Use the same algorithm in compute.brlen from ape package
A cladogram (tree) from taxonomic table
https://search.r-project.org/CRAN/refmans/ape/html/compute.brlen.html
get_taxonomical_tree(tax_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.