Learn R Programming

paleotree (version 1.0)

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

Details

No additional details.

See Also

speciationalTree,timePaleoPhy,

Examples

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

Run the code above in your browser using DataLab