consensus.edges {phytools} | R Documentation |
Compute consensus edges for a tree under some criterion
Description
Computes consensus edge lengths from a set of input trees using multiple methods.
Usage
consensus.edges(trees, method=c("mean.edge","least.squares"), ...)
Arguments
trees |
object of class |
method |
method for computing the edge lengths. Could be the mean of all trees in which the edge is present, or it could be the least-squares edge lengths computed on the mean patristic distance matrices from the input phylogenies in |
... |
optional arguments, the most popular of which is |
Value
An object of class "phylo"
with edge lengths.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.