Learn R Programming

paleotree (version 1.8.2)

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

No additional details.

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