Diversitree logo

Diversitree


Comparative phylogenetic analysis of diversification in R. The "diversitree" package includes a number of comparative phylogenetic methods, mostly focussing on analysing diversification and character evolution. Contains implementations of BiSSE (Binary State Speciation and Extinction; Maddison et al. 2007: Syst. Biol. 56: 701) and its unresolved tree extensions (FitzJohn et al. 2009: Syst. Biol. 58: 595), MuSSE (Multiple State Speciation and Extinction), and QuaSSE (Quantitative State Speciation and Extinction; FitzJohn 2010: Syst. Biol. in press), and GeoSSE (Geographic State Speciation and Extinction; Goldberg et al. 2010: Syst. Biol.). The package also includes support for Markov models of character evolution (e.g., Pagel 1994, and Brownian motion) and character-independent speciation/extinction (Nee et al. 1994).

Diversitree has been used in a number of studies. If you use diversitree in a paper, please let me know!

Installation

The simplest route is to install the package through R:

      install.packages("diversitree")
    

will install diversitree from CRAN (current CRAN version: 0.7-2).

Download and installation from source

The source package can be downloaded from here.

It is important that this file is not uncompressed by your browser. If the file is downloaded without the "gz" extension, try right-clicking the file and selecting "Save file as" (or similar depending on your browser). Mac users might try

      curl -O http://www.zoology.ubc.ca/prog/diversitree/diversitree_0.7-7.tar.gz
    

from the command line.

This download is a source package only; you will need a working C and Fortran compiler to install the package. (Xcode + gfortran is sufficient on Mac OS X, most Linux systems are probably fine as-is, and on windows consider MinGW or the tools here). First, install the packages deSolve, ape, and subplex From within R, run

      install.packages("diversitree_0.7-7.tar.gz", repos=NULL, type="source")
    

which will compile and install the package.

See here for more information, for known problems with Mac OS X 10.5 (leopard), and for information about using QuaSSE.

Documentation

A preliminary tutorial is available here, which outlines use of the main models. Most of the examples here use simulated data, but to run the shorebird example, you will need a number of files from here. Additional help is available through R's online help system - type library(help=diversitree) for a list of topics.

Frequently asked questions and answers are here.

Licence

Diversitree is released under the GPL, version 2.

It uses the excellent Expokit library for matrix exponential calculations for using BiSSE with terminally unresolved clades.

Releases / Changes

References