depthRainbow: Paint Tree Branch Depth by Color

View source: R/depthRainbow.R

depthRainbowR Documentation

Paint Tree Branch Depth by Color

Description

Paints the edges of a phylogeny with colors relative to their depth.

Usage

depthRainbow(tree)

Arguments

tree

A phylogeny, as an object of class phylo.

Details

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.

Value

No value returned, just plots a colorful phylogeny.

Examples


set.seed(444)
tree <- rtree(500)
depthRainbow(tree)


paleotree documentation built on Aug. 22, 2022, 9:09 a.m.