treeCompare: Visualize the difference between phylogenetic trees

View source: R/treeCompare.R

treeCompareR Documentation

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)

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.

Value

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

Author(s)

Silvia Castiglione, Carmela Serio, Antonella Esposito

Examples

## Not run: 
DataSimians$tree->tree
set.seed(22)
swapONE(tree,si=0.5)[[1]]->tree1

treeCompare(tree,tree1)


## End(Not run)

RRphylo documentation built on June 7, 2023, 5:49 p.m.