Description Usage Arguments Value Author(s) See Also Examples
Find the topologicial differences between two trees with the same tip labels. The function returns a data frame of the tips and the number of differences in their ancestry between the two trees.
Called by plotTreeDiff
, which highlights the differing tips in a plot of the two trees.
1 |
tr1 |
an object of the class |
tr2 |
an object of the class |
vec1 |
an optional input, the result of |
vec2 |
an optional input, the result of |
A data frame of the tree tips and the number of ancestral differences between them in the two trees, in order of increasing difference. A tip is said to have zero difference if each of its ancestral nodes admits the same tip partition in the two trees.
Michelle Kendall michelle.louise.kendall@gmail.com
1 2 3 4 5 6 7 8 | ## simple example on trees with five tips:
tr1 <- read.tree(text="((A:1,B:1):1,((C:1,D:1):1,E:1):1):1;")
tr2 <- read.tree(text="((A:1,B:1):1,(C:1,(D:1,E:1):1):1):1;")
tipDiff(tr1,tr2)
## example on larger woodmice trees
data(woodmiceTrees)
tipDiff(woodmiceTrees[[1]],woodmiceTrees[[2]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.