Learn R Programming

paleotree (version 1.0)

depthRainbow: Paint Tree Depth by Color

Description

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

Usage

depthRainbow(tree)

Arguments

tree
A phylo object

Value

  • No value returned, just plots a colorful phylogeny.

Details

Depth is defined relative to as number of branching nodes awar from the root, not absolute distance or distance from the tips.

Examples

Run this code
set.seed(444)
tree<-rtree(1000)
depthRainbow(tree)

Run the code above in your browser using DataLab