View source: R/forceEqualTipHeights.R
forceEqualTipHeights | R Documentation |
Modify terminal edge lengths to create "exactly" (see Details) equal tip heights (sum of edge lengths from root to tip)
forceEqualTipHeights(phy, baseline = "mean")
phy |
An object of class |
baseline |
A character string giving a function to calculate the
baseline tip height, e.g. |
What is "exactly" equal depends on the precision of the system
(.Machine
); in any case the resulting phylogeny will pass
is.ultrametric
with default arguments.
An object of class phylo
with changed terminal
edge lengths.
forceEqualTipHeights
is only intended to correct small rounding
errors in edge lengths, not to make an additive phylogeny ultrametric. For
the latter, see e.g. chronos
.
tipHeights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.