Learn R Programming

⚠️There's a newer version (2.5-2) of this package.Take me there.

phytools (version 0.2-90)

Phylogenetic Tools for comparative biology (and other things)

Description

phytools provides various functions for phylogenetic analysis, mostly relevant to comparative biology.

Copy Link

Version

Install

install.packages('phytools')

Monthly Downloads

12,223

Version

0.2-90

License

GPL (>= 2)

Maintainer

Liam Revell

Last Published

June 29th, 2013

Functions in phytools (0.2-90)

getSisters

Get the sister node number, label, or set of nodes for a node or tip
add.everywhere

Add tip to all edges in a tree
add.color.bar

Add color bar to a plot
allFurcTrees

Generate all bi- and multifurcating unrooted trees
add.simmap.legend

Add legend to stochastically mapped tree
anc.Bayes

Bayesian ancestral character estimation
anc.ML

Ancestral character estimation using likelihood
describe.simmap

Summarizes a stochastic mapped tree or set of trees
evol.rate.mcmc

Bayesian MCMC method for identifying exceptional phenotypic diversification in a phylogeny
brownieREML

REML version of brownie.lite
nodeHeights

Compute the heights above the root of each node
findMRCA

Get the MRCA of a set of taxa
bind.tip

Attaches a new tip to a tree
evolvcv.lite

Likelihood test for a shift in the evolutionary correlation between traits
branching.diffusion

Animation of branching random diffusion
densityMap

Plot posterior density of stochastic mapping on a tree
contMap

Map continuous trait evolution on the tree
anc.trend

Ancestral character estimation with a trend
fancyTree

Plots special types of phylogenetic trees
drop.tip.simmap

Drop tips or extract clade from tree with mapped discrete character
optim.phylo.ls

Phylogeny inference using the least squares method
phyl.resid

Phylogenetic size-correction via GLS regression
phyloDesign

Compute design matrix for least squares analyses
brownie.lite

Likelihood test for rate variation in a continuous trait
fastAnc

Fast estimation of ML ancestral states
ave.rates

Average the posterior rates
fitBayes

Evolutionary model fitting with intraspecific variability using Bayesian MCMC
evol.vcv

Likelihood test for variation in the evolutionary VCV matrix
fitDiversityModel

Fit diversity-dependent phenotypic evolution model
repPhylo

Replicate a tree into a list of trees
phyl.RMA

Phylogenetic reduced major axis (RMA) regression
fastMRCA

Get the MRCA of a pair of tip taxa
ltt

Creates lineage-through-time plot (including extinct lineages)
getStates

Get the states at nodes or tips from a mapped tree
countSimmap

Counts the number of character changes on a SIMMAP style tree or set of trees
make.simmap

Simulate stochastic character maps on a phylogenetic tree or trees
lambda.transform

Lambda transformation of matrix
ltt95

Creates a (1-$\alpha$)-percent CI for a set of LTTs
multi.mantel

Multiple matrix regression (partial Mantel test)
mrp.supertree

Matrix representation parsimony supertree estimation
anoletree

Phylogeny of 100 Greater Antillean anole species with mapped discrete character
phyl.pairedttest

Phylogenetic paired t-test
treeSlice

Slices the tree at a particular point and returns all subtrees
export.as.xml

Export trees & data in XML format
reroot

Re-root a tree along an edge
read.newick

Robust Newick style tree reader
applyBranchLengths

Applies the branch lengths of a reference tree to a target
phylosig

Compute phylogenetic signal with two methods
rstate

Pick a random state according to a vector of probabilities
mergeMappedStates

Merge two or more mapped states into one state
getDescendants

Get descendant node numbers
matchNodes

Matches nodes between two trees
sampleFrom

Sample from a set of distributions
minSplit

Finding the minimum (median) split in the posterior sample
phenogram

Plot phenogram (traitgram)
read.simmap

Read SIMMAP style trees from file
plotTree

Plots rooted phylogenetic tree
writeNexus

Write a tree to file in Nexus format
sim.corrs

Multivariate Brownian simulation with multiple correlations and rates
ancThresh

Ancestral character estimation under the threshold model using Bayesian MCMC
add.random

Add tips at random to the tree
vcvPhylo

Calculates cophenetic (i.e., phylogenetic VCV) matrix
threshState

Computes value for a threshold character from a liability and thresholds
phyl.pca

Phylogenetic principal components analysis
ls.tree

Least squares branch lengths for a given tree
estDiversity

Estimate diversity at each node of the tree
drop.clade

Drop a clade from a tree
paste.tree

Paste two trees together
gammatest

Gamma test of Pybus & Harvey (2000)
phylANOVA

Phylogenetic ANOVA and post-hoc tests
getCladesofSize

Get all subtrees larger than or equal to a specified size
phylomorphospace

Creates phylomorphospace plot
pbtree

Simulate pure-birth or birth-death stochastic tree or trees
phytools-package

phytools: Phylogenetic Tools for comparative biology (and other things)
phyl.cca

Phylogenetic canonical correlation analysis
splitplotTree

Plots a phylogeny in two columns
sim.rates

Brownian simulation with multiple evolutionary rates
splitTree

Split tree at a point
writeAncestors

Write a tree to file with ancestral states and (optionally) CIs at nodes
starTree

Create star phylogeny
threshDIC

Deviance Information Criterion from the threshold model
reorderSimmap

Reorder edges of a simmap tree
xkcdTree

Plot xkcd style tree
strahlerNumber

Computes Strahler number for trees and nodes
sim.history

Simulate stochastic character history under some model
likMlambda

Likelihood for joint lambda
paintSubTree

Paint sub-trees with a discrete character
expm

Matrix exponential
phylomorphospace3d

Creates tree-dimensional phylomorphospace plot
plotThresh

Tree plotting with posterior probabilities of ancestral states from the threshold model
exhaustiveMP

Exhaustive and branch & bound MP optimization
getExtant

Returns a list of the extant or extinct lineages in a tree containing non-contemporaneous tips
orderMappedEdge

Order the columns of mapped.edge to match across trees
multiC

Returns a list with phylogenetic VCV matrix for each mapped state
phyl.vcv

Compute evolutionary VCV matrix for a tree & dataset
plotSimmap

Plot stochastic character mapped tree
plotBranchbyTrait

Plot branch colors by a quantitative trait or value
untangle

Attempts to untangle crossing branches for plotting
write.simmap

Write a stochastic character mapped tree to file
threshBayes

Threshold model using Bayesian MCMC
bmPlot

Simulates and visualizes discrete-time Brownian evolution on a phylogeny
collapse.to.star

Collapse a subtree to a star phylogeny
map.overlap

Proportional overlap between two mapped character histories on a tree
fastBM

Fast Brownian simulation
make.era.map

Create "era" map on a phylogenetic tree
pgls.Ives

Phylogenetic regression with intraspecific sampling error
rerootingMethod

Get marginal ancestral state reconstructions by re-rooting
posterior.evolrate

Analysis of the posterior sample from evol.rate.mcmc
rescaleSimmap

Rescale SIMMAP style tree
to.matrix

Convert a character vector to a binary matrix
roundBranches

Rounds the branch lengths of a tree
sim.ratebystate

Conduct simulation of state dependent rate variation
ratebystate

Method for investigating the rate of one trait as a function of the state of another