Learn R Programming

paleotree (version 2.5)

unitLengthTree: Scale Tree to Unit-Length

Description

Rescales all edges of a phylogeny to be equal to 1 ("unit-length").

Usage

unitLengthTree(tree)

Arguments

tree
an object of class phylo

Value

  • Returns the modified phylogeny as an object of class phylo. Any $root.time element is removed.

Details

Probably not a good way to scale a tree for comparative studies. What does it mean to scale every edge of the phylogeny to the same length?

See Also

As an alternative to using unitLengthTree in comparative studies, see timePaleoPhy See also speciationalTree in the package geiger, which does essentially the same thing as unitLengthTree.

Examples

Run this code
set.seed(444)
tree <- rtree(10)
layout(1:2)
plot(tree)
plot(unitLengthTree(tree))
layout(1)

Run the code above in your browser using DataLab