Methods for dendrograms of class "phylo_divent".

as_phylo_divent(tree)

is_phylo_divent(x)

Arguments

tree

An ultrametric, phylogenetic tree. May be an object of class phylo_divent, ape::phylo, ade4::phylog or stats::hclust.

x

An object of class "phylo_divent".

Value

as_phylo_divent returns a phylogenetic tree that is an object of class "phylo_divent".

Details

as_phylo_divent calculates cuts and intervals of a phylogenetic tree and makes it available both in stats::hclust and ape::phylo formats. The conversion preprocesses the tree: it calculates cuts so that the tree can be reused efficiently by phylodiversity functions.

Examples

# Paracou plot 6 species taxonomy
tree <- as_phylo_divent(mock_3sp_tree)
plot(tree)