get_taxonomical_tree: Create a taxonomic tree (cladogram) given a taxonomic table

View source: R/get_taxonomical_tree.R

get_taxonomical_treeR Documentation

Create a taxonomic tree (cladogram) given a taxonomic table

Description

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.

Usage

get_taxonomical_tree(tax_table, power = 1)

Arguments

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.

Details

Use the same algorithm in compute.brlen from ape package

Value

A cladogram (tree) from taxonomic table

References

https://search.r-project.org/CRAN/refmans/ape/html/compute.brlen.html

Examples

get_taxonomical_tree(tax_table)

alrobles/geotax documentation built on July 27, 2023, 4:37 a.m.