paintBranches: Paint branches for Ornstein-Uhlenbeck analysis

Description Usage Arguments Details Value Author(s) See Also


Paints branches with regimes changing at nodes specified. Called by regimeVectors.


  paintBranches(regimeShiftNodes, tree, regimeTitles)



Either a vector of nodes (by number) at which the selective regime changes, or a list of taxa defining nodes. This allows you to use paintBranches with the same nodes you use to call runBatchHansen. This parameter may include the root but does not need to.


An S4 ouchtree object, generated using ape2ouch or ouchtree. Old-style ouch trees (data frames) will not work but can be translated using ouchtree.


Titles for the regimes.


regimeTitles is a vector of titles for the regimes that begin at the root and at the nodes indicated in regimeShiftNodes in order of description in "regimeShiftNodes", except that the root is listed first in regimeTitles but may not be included at all in regimeShiftNodes.


A regime in which shifts in optimum are coded as occuring at all nodes specified in regimeShiftNodes. The regime is formated to input directly into hansen


Andrew Hipp

See Also

regimeVectors, isMonophyletic

maticce documentation built on May 31, 2017, 4:41 a.m.

Search within the maticce package
Search all R packages, documentation and source code