TreeToDend: Convert tree to dendrogram

View source: R/TreeToDen.R

TreeToDendR Documentation

Convert tree to dendrogram

Description

Convert the non-ultrametric tree to a dendrogram for 'ProfilePlot()' to plot the profiles using the 'chronos()' function from 'ape' package.

Usage

TreeToDend(phytree)

Arguments

tree

an object of class "phylo"

Value

a dendrogram as an input for 'ProfilePlot()' function

Examples

#library(ape)
# create a random 50-tip tree
t <- rtree(50)
plot(t)
d <- TreeToDend(t)
plot(d)

beiko-lab/evolCCM documentation built on Feb. 26, 2024, 5:21 p.m.