depthRainbow | R Documentation |
Paints the edges of a phylogeny with colors relative to their depth.
depthRainbow(tree)
tree |
A phylogeny, as an object of class |
The only purpose of this function is to make an aesthetically-pleasing graphic of one's tree, where branches are color-coded with a rainbow palette, relative to their depth. Depth is defined relative to the number of branching nodes between the basal node of a branch and the root, not the absolute distance (i.e. branch length) to the root or the distance from the tips.
No value returned, just plots a colorful phylogeny.
set.seed(444) tree <- rtree(500) depthRainbow(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.