Learn R Programming

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

RPANDA

R: Phylogenetic ANalyses of DiversificAtion

Implements fits of diversification and phenotypic evolution models to phylogenetic data. See Morlon et al. PLoSB (2010), Morlon et al. PNAS (2011), Condamine et al. Eco Lett (2013), Morlon et al. Eco Lett (2014), Manceau et al. Eco Lett (2015), Lewitus & Morlon Syst Biol (2016), Drury et al. Syst Biol (2016), Manceau et al. Syst Biol (2016), Clavel & Morlon PNAS (2017), Drury et al. Syst Biol (2017), Lewitus & Morlon Syst Biol (2017), Drury et al. PLoSB (2018), Clavel et al. Syst Biol (2019), Maliet et al. Nature Ecol Evol (2019), Condamine et al. Eco Lett (2019), Aristide & Morlon Eco Lett (2019), Billaud et al. Syst Biol (2019), Lewitus & Morlon Syst Biol (2019), Maliet et al. Eco Lett (2020).

More information on the RPANDA package and worked examples can be found in Morlon et al. (2016)

The current stable version of the RPANDA package (1.9) is available on the CRAN repository. https://cran.r-project.org/package=RPANDA

Package Installation

From gitHub You can install RPANDA directly from gitHub with devtools:

library(devtools)

install_github("hmorlon/PANDA", dependencies = TRUE)

From the binaries

You can download the pre-released binaries for Windows and Mac OS X from the release page

From the source

Otherwise, you can install it directly from the source. Download the RPANDA folder and then, from the terminal console (linux, windows or mac):

R CMD build RPANDA

This will produce the RPANDA tarball.

Then, for compiling the binary:

R CMD INSTALL --build RPANDA_1.X.tar.gz

Report an issue

Any bugs encountered when using the package can be reported here

Continuous integration

Travis-CI Build Status:

Copy Link

Version

Install

install.packages('RPANDA')

Monthly Downloads

495

Version

1.9

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

H<c3><a9>l<c3><a8>ne Morlon

Last Published

September 15th, 2020

Functions in RPANDA (1.9)

BICompare

Identify modalities in a phylogeny
Calomys

Calomys phylogeny
Caprimulgidae

The Caprimulgidae phylogeny.
ClaDS0_example

An example run of ClaDS0.
CreateClassObject

Create class object
CreateGeoObject

Create biogeography object
Anolis.data

Anolis dataset
CreateGeoObject_BioGeoBEARS

Create biogeography object using a stochastic map from BioGeoBEARS
BGB.examples

BioGeoBEARS stochastic maps
InfTemp

Paleotemperature data across the Cenozoic
JSDt_cluster

Clustering on the Jensen-Shannon distance between phylogenetic trait data
JSDtree

Jensen-Shannon distance between phylogenies
JSDtree_cluster

Clustering of phylogenies
PhenotypicADiag-class

Class "PhenotypicADiag"
Balaenopteridae

Balaenopteridae phylogeny
PhenotypicDD-class

Class "PhenotypicDD"
PhenotypicBM-class

Class "PhenotypicBM"
Phyllostomidae

Phyllostomidae phylogeny
Caprimulgidae_ClaDS2

An example run of ClaDS2.
Cetacea

Cetacean phylogeny
CreateGeobyClassObject

Create merged biogeography-by-class object
coccolithophore

Coccolithophore diversity since the Jurassic
Phyllostomidae_genera

Phylogenies of Phyllostomidae genera
MPhiFFT

A class used internally to compute ClaDS's likelihood
define_species.BipartiteEvol

Build the phylogenies for BipartiteEvol
foraminifera

Foraminifera diversity since the Jurassic
createModel

Creation of a PhenotypicModel
fitTipData-methods

~~ Methods for Function fitTipData ~~
ancestral

Estimation of traits ancestral states.
PhenotypicGMM-class

Class "PhenotypicGMM"
GIC.fit_pl.rpanda

Generalized Information Criterion (GIC) to compare models fit by Maximum Likelihood (ML) or Penalized Likelihood (PL).
PhenotypicModel-class

Class "PhenotypicModel"
build_network.BipartiteEvol

Build the interaction network in BipartiteEvol
PhenotypicOU-class

Class "PhenotypicOU"
fitTipData

Maximum likelihood estimators of a model's parameters
fit_ClaDS

Fit ClaDS to a phylogeny
getDataLikelihood-methods

~~ Methods for Function getDataLikelihood ~~
co2

co2 data since the Jurassic
co2_res

co2 data since the beginning of the Cenozoic
createModelCoevolution

Creation of a PhenotypicGMM
getDataLikelihood

Likelihood of tip trait values.
fit_bd

Maximum likelihood fit of the general birth-death model
fit_ClaDS0

Infer ClaDS0's parameter on a phylogeny
PhenotypicACDC-class

Class "PhenotypicACDC"
d13c

d13c data since the Jurassic
likelihood_t_DD

Likelihood of a dataset under diversity-dependent models.
likelihood_subgroup_model

Likelihood of a dataset under models with biogeography fit to a subgroup.
modelSelection-methods

~~ Methods for Function modelSelection ~~
likelihood_coal_var

Likelihood of a birth-death model using a coalescent approch
getMAPS_ClaDS

Gets the Maximum A Posteriori for each ClaDS parameter
fit_t_env

Maximum likelihood fit of the environmental model of trait evolution
fit_coal_var

Fit birth-death model using a coalescent approch
fit_coal_cst

Maximum likelihood fit of the equilibrium model
modelSelection

Phenotypic model selection from tip trait data.
plot_ClaDS_phylo

Plot a phylogeny with branch-specific values
Phocoenidae

Phocoenidae phylogeny
Posdef

Positive definite symmetric matrices
PhenotypicPM-class

Class "PhenotypicPM"
RPANDA-package

RPANDA
likelihood_sgd

Likelihood of a phylogeny under the SGD model
fit_sgd

Maximum likelihood fit of the SGD model
fit_env

Maximum likelihood fit of the environmental birth-death model
phyl.pca_pl

Regularized Phylogenetic Principal Component Analysis (PCA).
ostracoda

Ostracod diversity since the Jurassic
likelihood_bd

Likelihood of a phylogeny under the general birth-death model
getMAPS_ClaDS0

Gets the Maximum A Posteriori for each ClaDS0 parameter
fit_t_comp

Fits models of trait evolution incorporating competitive interactions
fit_t_comp_subgroup

Fits models of trait evolution incorporating competitive interactions, restricting competition to occur only between members of a subgroup
getTipDistribution-methods

Distribution of tip trait values.
plot_dtt

Plot diversity through time
greenalgae

Green algae diversity since the Jurassic
plot_div.BipartiteEvol

Plot the output of BipartiteEvol
likelihood_coal_cst

Likelihood of a phylogeny under the equilibrium diversity model
sim_t_env

Recursive simulation (root-to-tip) of the environmental model
plot_prob_dtt

Plot diversity through time with confidence intervals.
plot_spectR

Spectral density plot of a phylogeny.
sim_t_comp

Recursive simulation (root-to-tip) of competition models
gic_criterion

Generalized Information Criterion (GIC) to compare models fit by Maximum Likelihood (ML) or Penalized Likelihood (PL).
fit_t_pl

High-dimensional phylogenetic models of trait evolution
getTipDistribution

Distribution of tip trait values.
likelihood_t_MC_geog

Likelihood of a dataset under the matching competition model with biogeography.
likelihood_t_env

Likelihood of a dataset under environmental models of trait evolution.
plot_fit_bd

Plot speciation, extinction & net diversification rate functions of a fitted model
landplant

Land plant diversity since the Jurassic
make_gen.BipartiteEvol

Compute the genealogies for BipartiteEvol
lines.fit_t.env

Add to a plot line segments joining the phenotypic evolutionary rate through time estimated by the fit_t_env function
plot_fit_env

Plot speciation, extinction & net diversification rate functions of a fitted environmental model
prob_dtt

Confidence intervals of diversity through time
plot_ClaDS_chains

Plot the MCMC chains obtained when infering ClaDS parameters
plot_ClaDS0_chains

Plot the MCMC chains obtained when infering ClaDS0 parameters
radiolaria

Radiolaria diversity since the Jurassic
sim_ClaDS

Simulation of the ClaDS model
sim_MCBD

Simulation of macroevolutionary diversification under the integrated model described in Aristide & Morlon 2019
plot_net.BipartiteEvol

Plot the output of BipartiteEvol
simulateTipData-methods

~~ Methods for Function simulateTipData ~~
sim.divergence.geo

Simulation of trait data under the model of divergent character displacement described in Drury et al. 2017
sim.convergence.geo

Simulation of trait data under the model of convergent character displacement described in Drury et al. 2017
simulateTipData

Tip trait simulation under a model of phenotypic evolution.
sim.BipartiteEvol

Simulation of the BipartiteEvol model
silica

Silica data across the Cenozoic
likelihood_t_DD_geog

Likelihood of a dataset under diversity-dependent models with biogeography.
sim_env_bd

Simulate birth-death tree dependent on an environmental curve
sim_sgd

Algorithm for simulating a phylogenetic tree under the SGD model
plot.fit_t.env

Plot the phenotypic evolutionary rate through time estimated by the fit_t_env function
likelihood_t_MC

Likelihood of a dataset under the matching competition model.
plot_BICompare

Display modalities on a phylogeny.
redalgae

Red algae diversity since the Jurassic
spectR_t

Spectral density plot of phylogenetic trait data
sealevel

Sea level data since the Jurassic
spectR

Spectral density plot of a phylogeny