TreeToDend | R Documentation |
Convert the non-ultrametric tree to a dendrogram for 'ProfilePlot()' to plot the profiles using the 'chronos()' function from 'ape' package.
TreeToDend(phytree)
tree |
an object of class "phylo" |
a dendrogram as an input for 'ProfilePlot()' function
#library(ape)
# create a random 50-tip tree
t <- rtree(50)
plot(t)
d <- TreeToDend(t)
plot(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.