Learn R Programming

phytools (version 0.3-72.1)

rescaleSimmap: Rescale SIMMAP style tree

Description

This function scales a tree with a mapped discrete character to an arbitrary total height, preserving the relative time spent in each state along each edge.

Usage

rescaleSimmap(tree, totalDepth=1.0)

Arguments

tree
a phylogenetic tree in modified "phylo" format with a discrete character mapping (e.g., see read.simmap or make.simmap).
totalDepth
a new desired value for the total depth (height) of the tree. If the tree is not ultrametric this is the maximum height.

Value

  • A phylogenetic tree in modified "phylo" format.

Details

Replaces rescaleTree in the 'geiger' package for SIMMAP style trees.

See Also

make.simmap, read.simmap