Learn R Programming

RRphylo (version 2.8.0)

treeCompare: Visualize the difference between phylogenetic trees

Description

The function scans a pair of phylogenetic trees to find topological differences.

Usage

treeCompare(tree, tree1, plot = TRUE)

Value

The function returns a data-frame indicating for each un-matching species its sister species/clades on both trees.

Arguments

tree, tree1

a phylogenetic tree. The tree needs not to be ultrametric and fully dichotomous. Generic name and specific epithet must be separated by '_'.

plot

if TRUE, the function produces an interactive plotting device to check differences in species placement at the genus level.

Author

Silvia Castiglione, Carmela Serio, Antonella Esposito

Examples

Run this code
if (FALSE) {
DataSimians$tree->tree
set.seed(22)
swapONE(tree,si=0.5)[[1]]->tree1

treeCompare(tree,tree1)

}

Run the code above in your browser using DataLab