Learn R Programming

phytools (version 0.6-44)

map.overlap: Proportional overlap between two mapped character histories on a tree

Description

This function computes the fraction of a stochastic character mapping that is shared between two differently mapped trees. In map.overlap it will compute a single quantitying giving the overall similarity of the maps, consequently this measure only makes sense of some or all of the states are shared between the two mapped tress. In Map.Overlap is computed in which the rows are states observed in tree1 and columns give the states for tree2.

Usage

map.overlap(tree1, tree2, tol=1e-6, ...)
Map.Overlap(tree1, tree2, tol=1e-06, standardize=TRUE, ...)

Arguments

tree1

an object of class "simmap".

tree2

an object of class "simmap".

tol

an optional tolerance value.

standardize

for Map.Overlap, a logical value indicating whether or not to standardize overlap by dividing by the summed branch length of the tree.

...

optional arguments, such as check.equal, a logical value indicating whether or not to check if tree1 and tree2 match in underlying topology and branch lengths (they should). This value is TRUE by default, but can be set to FALSE if tree1 and tree2 are known to be equal to speed up calculation.

Value

A numerical value on the interval 0-1, for map.overlap; or a matrix (Map.Overlap).

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

make.simmap, read.simmap