TreeTools (version 1.10.0)

Consensus: Construct consensus trees

Description

Consensus() calculates the consensus of a set of trees, using the algorithm of Day1985TreeTools.

Usage

Consensus(trees, p = 1, check.labels = TRUE)

Value

Consensus() returns an object of class phylo, rooted as in the first entry of trees.

Arguments

trees

List of trees, optionally of class multiPhylo.

p

Proportion of trees that must contain a split for it to be reported in the consensus. p = 0.5 gives the majority-rule consensus; p = 1 (the default) gives the strict consensus.

check.labels

Logical specifying whether to check that all trees have identical labels. Defaults to TRUE, which is slower.

References

See Also

TreeDist::ConsensusInfo() calculates the information content of a consensus tree.

Other consensus tree functions: ConsensusWithout(), RoguePlot()

Other tree characterization functions: CladisticInfo(), Stemwardness, TotalCopheneticIndex()

Examples

Run this code
Consensus(as.phylo(0:2, 8))

Run the code above in your browser using DataLab