Learn R Programming

phytools (version 0.0-8)

minSplit: Finding the minimum (median) split in the posterior sample

Description

This function takes a phylogenetic tree and a list of splits and identifies the split with the smallest summed or summed squared distances to all the other splits. Used to be called min.split().

Usage

minSplit(tree,split.list,method="sum",printD=FALSE)

Arguments

tree
a phylogenetic tree in "phylo" format.
split.list
either a matrix with two named columns, "node" and "bp"; a $mcmc matrix from evol.rate.mcmc(); or the entire raw output from evol.rate.mcmc().
method
an optional string indicating the criterion to minimize: options are "sum" and "sumsq".
printD
logical specifying whether to print distances to screen (FALSE by default).

Value

  • a list with the following components:
  • nodenode for the minimum split.
  • bplocation on the branch leading to node of the minimum split.

References

Revell, L. J., D. L. Mahler, P. Peres-Neto, and B. D. Redelings. In review. A new method for identifying exceptional phenotypic diversification.

See Also

evol.rate.mcmc, posterior.evolrate