Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/MultiTreeDistance.R
Given a set of input trees, calculates all pairwise tree distances.
1 | MultiTreeDistance(trees, distance = "contradiction", rescale = TRUE)
|
trees |
An object of class 'multi.phylo'. |
distance |
The type of disatnce to use, must be one of "RF" (RObinson-Foulds) or "contradiction" (tree contradiction). |
rescale |
Whether or not to rescale the distance (zero to one). |
This function is an incomplete attempt to generalise the MultiTreeContradiction function to incorporate not just contradiction differences (Bapst et al. 2018), but also the Robinson-Foulds distance metric (Robinson and Foulds 1981).
It is not yet ready for general use.
A symmetric matrix of pairwise tree distances.
Graeme T. Lloyd graemetlloyd@gmail.com
Bapst, D. W., H. A. Schreiber, and S. J. Carlson. 2018. Combined analysis of extant Rhynchonellida (Brachiopoda) using morphological and molecular data. Systematic Biology, 67, 32-48.
Robinson, D. F. and Foulds, L. R., 1981. Comparison of phylogenetic trees. Mathematical Biosciences, 53, 131-147.
paleotree::treeContradiction
and phytools::multiRF
.
1 2 3 4 5 6 | # Generate three example trees (with tips labelled A-D):
ExampleTrees <- read.tree(text = c("(A,B,C,D);", "(A,(B,(C,D)));",
"((A,B),C,D);"))
# Calculate rescaled RF distances matrix:
MultiTreeDistance(ExampleTrees, distance = "RF")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.