Learn R Programming

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

phytools (version 0.2-70)

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,126

Version

0.2-70

License

GPL (>= 2)

Maintainer

Liam Revell

Last Published

May 22nd, 2013

Functions in phytools (0.2-70)

exhaustiveMP

Exhaustive and branch & bound MP optimization
ratebystate

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

Slices the tree at a particular point and returns all subtrees
findMRCA

Get the MRCA of a set of taxa
estDiversity

Estimate diversity at each node of the tree
fastAnc

Fast estimation of ML ancestral states
minSplit

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

Plot xkcd style tree
rstate

Pick a random state according to a vector of probabilities
orderMappedEdge

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

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

Phylogenetic ANOVA and post-hoc tests
reorderSimmap

Reorder edges of a simmap tree
anc.Bayes

Bayesian ancestral character estimation
make.simmap

Simulate stochastic character maps on a phylogenetic tree or trees
pgls.Ives

Phylogenetic regression with intraspecific sampling error
rescaleSimmap

Rescale SIMMAP style tree
densityMap

Plot posterior density of stochastic mapping on a tree
gammatest

Gamma test of Pybus & Harvey (2000)
phenogram

Plot phenogram (traitgram)
rerootingMethod

Get marginal ancestral state reconstructions by re-rooting
writeNexus

Write a tree to file in Nexus format
drop.clade

Drop a clade from a tree
evol.vcv

Likelihood test for variation in the evolutionary VCV matrix
fancyTree

Plots special types of phylogenetic trees
phytools-package

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

Phylogenetic principal components analysis
phylomorphospace3d

Creates tree-dimensional phylomorphospace plot
plotTree

Plots rooted phylogenetic tree
roundBranches

Rounds the branch lengths of a tree
brownie.lite

Likelihood test for rate variation in a continuous trait
phylosig

Compute phylogenetic signal with two methods
drop.tip.simmap

Drop tips or extract clade from tree with mapped discrete character
expm

Matrix exponential
fastBM

Fast Brownian simulation
fitBayes

Evolutionary model fitting with intraspecific variability using Bayesian MCMC
phyl.pairedttest

Phylogenetic paired t-test
mrp.supertree

Matrix representation parsimony supertree estimation
matchNodes

Matches nodes between two trees
phyl.resid

Phylogenetic size-correction via GLS regression
strahlerNumber

Computes Strahler number for trees and nodes
threshState

Computes value for a threshold character from a liability and thresholds
add.everywhere

Add tip to all edges in a tree
write.simmap

Write a stochastic character mapped tree to file
bmPlot

Simulates and visualizes discrete-time Brownian evolution on a phylogeny
brownieREML

REML version of brownie.lite
plotBranchbyTrait

Plot branch colors by a quantitative trait or value
sampleFrom

Sample from a set of distributions
starTree

Create star phylogeny
vcvPhylo

Calculates cophenetic (i.e., phylogenetic VCV) matrix
branching.diffusion

Animation of branching random diffusion
fitDiversityModel

Fit diversity-dependent phenotypic evolution model
splitplotTree

Plots a phylogeny in two columns
plotSimmap

Plot stochastic character mapped tree
phyl.RMA

Phylogenetic reduced major axis (RMA) regression
to.matrix

Convert a character vector to a binary matrix
export.as.xml

Export trees & data in XML format
multiC

Returns a list with phylogenetic VCV matrix for each mapped state
make.era.map

Create "era" map on a phylogenetic tree
map.overlap

Proportional overlap between two mapped character histories on a tree
sim.history

Simulate stochastic character history under some model
ancThresh

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

Add tips at random to the tree
evolvcv.lite

Likelihood test for a shift in the evolutionary correlation between traits
contMap

Map continuous trait evolution on the tree
getCladesofSize

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

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

Get the states at nodes or tips from a mapped tree
multi.mantel

Multiple matrix regression (partial Mantel test)
posterior.evolrate

Analysis of the posterior sample from evol.rate.mcmc
read.simmap

Read SIMMAP style trees from file
splitTree

Split tree at a point
untangle

Attempts to untangle crossing branches for plotting
paste.tree

Paste two trees together
sim.corrs

Multivariate Brownian simulation with multiple correlations and rates
ave.rates

Average the posterior rates
bind.tip

Attaches a new tip to a tree
add.color.bar

Add color bar to a plot
applyBranchLengths

Applies the branch lengths of a reference tree to a target
anc.ML

Ancestral character estimation using likelihood
getDescendants

Get descendant node numbers
evol.rate.mcmc

Bayesian MCMC method for identifying exceptional phenotypic diversification in a phylogeny
lambda.transform

Lambda transformation of matrix
getSisters

Get the sister node number, label, or set of nodes for a node or tip
optim.phylo.ls

Phylogeny inference using the least squares method
mergeMappedStates

Merge two or more mapped states into one state
nodeHeights

Compute the heights above the root of each node
plotThresh

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

Compute design matrix for least squares analyses
phylomorphospace

Creates phylomorphospace plot
pbtree

Simulate pure-birth or birth-death stochastic tree or trees
repPhylo

Replicate a tree into a list of trees
read.newick

Read Newick style tree
writeAncestors

Write a tree to file with ancestral states and (optionally) CIs at nodes
describe.simmap

Summarizes a stochastic mapped tree or set of trees
phyl.cca

Phylogenetic canonical correlation analysis
anc.trend

Ancestral character estimation with a trend
ls.tree

Least squares branch lengths for a given tree
ltt95

Creates a (1-$\alpha$)-percent CI for a set of LTTs
paintSubTree

Paint sub-trees with a discrete character
reroot

Re-root a tree along an edge
sim.rates

Brownian simulation with multiple evolutionary rates
threshDIC

Deviance Information Criterion from the threshold model
threshBayes

Threshold model using Bayesian MCMC
allFurcTrees

Generate all bi- and multifurcating unrooted trees
countSimmap

Counts the number of character changes on a SIMMAP style tree or set of trees
fastMRCA

Get the MRCA of a pair of tip taxa
likMlambda

Likelihood for joint lambda
phyl.vcv

Compute evolutionary VCV matrix for a tree & dataset
sim.ratebystate

Conduct simulation of state dependent rate variation