phytools: Phylogenetic Tools for Comparative Biology (and Other Things)

Package contains various functions for phylogenetic analysis. This functionality is concentrated in the phylogenetic analysis of comparative data from species. For example, the package includes functions for Bayesian and ML ancestral state estimation; visual simulation of trait evolution; fitting models of trait evolution with multiple Brownian rates and correlations; visualizing discrete and continuous character evolution using colors or projections into trait space; identifying the location of a change in the rate of character evolution on the tree; fast Brownian motion simulation and simulation under several other models of continuous trait evolution; fitting a model of correlated binary trait evolution; locating the position of a fossil or an recently extinct lineage on a tree using continuous character data with ML; plotting lineage accumulation through time, including across multiple trees (such as a Bayesian posterior sample); conducting an analysis called stochastic character mapping, in which character histories for a discrete trait are sampled from their posterior probability distribution under a model; conducting a multiple (i.e., partial) Mantel test; fitting a phylogenetic regression model with error in predictor and response variables; conducting a phylogenetic principal components analysis, a phylogenetic regression, a reduced major axis regression, a phylogenetic canonical correlation analysis, and a phylogenetic ANOVA; projecting a tree onto a geographic map; simulating discrete character histories on the tree; fitting a model in which a discrete character evolves under the threshold model; visualization of cospeciation; a simple statistical test for cospeciation between two trees. In addition to this phylogenetic comparative method functionality, the package also contains functions for a wide range of other purposes in phylogenetic biology. For instance, functionality in this package includes (but is not restricted to): adding taxa to a tree (including randomly, everywhere, or automatically to genera); generating all bi- and multi-furcating trees for a set of taxa; reducing a phylogeny to its backbone tree; dropping tips or adding tips to special types of phylogenetic trees; exporting a tree as an XML file; converting a tree with a mapped character to a tree with singleton nodes and one character state per edge; estimating a phylogeny using the least squares method; simulating birth-death trees under a range of conditions; rerooting trees; computing a consensus tree under multiple methods, including via minimization of the distance to other trees in the set; a wide range of visualizations of trees; and a variety of other manipulations and analyses that phylogenetic biologists may find useful for their research.

Version: 0.5-64
Depends: R (≥ 3.2.0), ape (≥ 4.0), maps
Imports: animation, clusterGeneration, coda, combinat, graphics, grDevices, methods, mnormt, msm, numDeriv, phangorn (≥ 2.1.1), plotrix, scatterplot3d, stats, utils
Suggests: geiger, rgl
Published: 2016-12-05
Author: Liam J. Revell
Maintainer: Liam J. Revell <liam.revell at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Citation: phytools citation info
In views: Phylogenetics
CRAN checks: phytools results


Reference manual: phytools.pdf
Package source: phytools_0.5-64.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X Mavericks binaries: r-release: phytools_0.5-64.tgz, r-oldrel: phytools_0.5-64.tgz
Old sources: phytools archive

Reverse dependencies:

Reverse depends: bayou, convevol, MonoPhy, mvMORPH
Reverse imports: BMhyd, BPEC, brranching, DDD, evobiR, hisse, monogeneaGM, OUwie, paleotree, PBD, PhyInformR, phylocurve, PhySortR, RAM, recluster, RPANDA, Rphylopars, TKF, treeplyr
Reverse suggests: ALA4R, phybreak, RNeXML


Please use the canonical form to link to this page.