Phylogenetic Reconstruction and Analysis
Overview
Allows for estimation of phylogenetic trees and networks using Maximum Likelihood, Maximum Parsimony, distance methods and Hadamard conjugation (Schliep 2011). Offers methods for tree comparison, model selection and visualization of phylogenetic networks as described in Schliep et al. (2017).
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: phangorn/R/bab.R (.Names: 3, .Dim: 2) phangorn/R/fitch64.R (.Dim: 1, .Names: 1) phangorn/R/phylo.R (.Dim: 2, .Names: 2) phangorn/R/splits.R (.Names: 1) '.Names' should be changed to 'names'. '.Dim' should be changed to 'dim'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 76 (4 internal)includes a package overview page
- Examples that run
- 90%66 run in a plain check · 7 never run
- Exported functions with examples
- 97%
- Documented parameters
- 93%
- Return-value docs
- 97%
- Help pages citing references
- 51%
- Ancestral Sequence Reconstruction HTML
- Estimating phylogenetic trees with phangorn HTML
- Intertwining phylogenetic trees and networks: R Example Script HTML
- Markov models and transition rate matrices HTML
- Maximum likelihood by hand HTML
- Phylogenetic trees from morphological data HTML
- Splits and Networx HTML
Downloads
Repository
- PRs merged (all time)
- 72%
- Median days to close, 50 most recently updated closed issues
- 19
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
11 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/klausvigo/phangorn on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-05-19 · The repository has a site deploy workflow
pkgdown site last built 2026-05-19
Show all practicesHide 2 practices
Dependencies
Installing phangorn adds 15 packages (11 with compiled code, 11 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, ape 1.4 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Show 5 more contributorsHide 5 contributors
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- 2.15.3Latest2013-01-02 · current release · diff ↗ ·
added 12 exports
dist.p, read.nexus.splits, mrca.phylo, densiTree, superTree, coalSpeciesTree, pml.fit, pml.init, pml.free, edQt, lli, cladePar - 2.15.22012-10-10 · diff ↗
Show 78 earlier eventsHide 78 earlier events
- 2.15.12012-04-05 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 2.14.12011-12-12 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.13.12011-06-30 · diff ↗
- RR 2.13.0 released · 2011-04-13
- 2.13.0
- 2.12.22011-02-14 · diff ↗
- 2.12.12024-09-17 · diff ↗ ·
removed 2 exports
hash_phylo, read.aaadded 19 exports
add_mutations, add_support, anc_pars, anc_pml, as.StringSet, as.ancestral, composition_test, dna2aa, gap_as_ambiguous, gap_as_state, has_gap_state, hash, keep_as_tip, latag2n.phyDat, plotSeqLogo, read.nexus.partitions, supgma, write.ancestral, write.pml - RR 2.12.0 released · 2010-10-15
- 2.12.0
- 2.11.1
- RR 2.11.0 released · 2010-04-22
- 2.11.02010-04-15 · diff ↗
- 2.10.12009-11-27 · diff ↗
- 2.10.0
- 2.9.02022-06-16 · diff ↗ ·
added 6 exports
as.pml, discrete.beta, glance, ratchet.control, removeAmbiguousSites, tidy - 2.8.12021-12-15 · diff ↗
- 2.8.0
- RR 2.10.0 released · 2009-10-26
- RR 2.9.0 released · 2009-04-17
- RR 2.8.0 released · 2008-10-20
- 2.7.22008-07-21 · diff ↗
- 2.7.12021-07-13 · diff ↗
- 2.7.02021-05-03 · diff ↗
- 2.6.32021-04-06 · diff ↗
- 2.6.2
- 2.5.5
- 2.5.32019-03-23 · diff ↗ ·
removed 4 exports
PNJ, unique.dist, as.networx.splits, c.splitsadded 4 exports
%>%, allCompat, c.phyDat, mcc - 2.4.0
- 2.3.1
- 2.2.02017-04-03 · diff ↗ ·
removed 2 exports
countCycles, plot.networxadded 4 exports
write.nexus.dist, multiphyDat2pmlPart, removeTrivialSplits, genlight2phyDat - 2.1.12016-12-04 · diff ↗ ·
added 8 exports
allCircularSplits, sprdist, SPR.dist, distinct.splits, c.splits, dna2codon, codon2dna, as.MultipleAlignment - 2.0.4
- 2.0.32016-05-01 · diff ↗ ·
added 7 exports
read.nexus.networx, write.nexus.networx, KF.dist, path.dist, createLabel, matchSplits, maxCladeCred - 2.0.22016-01-23 · diff ↗
- 2.0.12015-12-15 · diff ↗
- 2.0.0
- 1.99.14
- 1.99-13
- 1.99-12
- 1.99-112014-11-11 · diff ↗
- 1.99-9
- 1.99-82014-10-07 · diff ↗ ·
removed 1 export
as.prop.partadded 6 exports
as.Matrix, addConfidences, countCycles, SOWH.test, plot.networx, presenceAbsence - 1.99-7
- 1.99-5
- 1.99-1
- 1.7-42013-04-04 · diff ↗ ·
removed 8 exports
dist.p, read.nexus.splits, pml.fit, pml.init, pml.free, edQt, lli, cladePar - 1.7-1
- 1.6-52012-10-10 · diff ↗
- 1.6-42012-08-02 · diff ↗
- 1.6-32012-07-01 · diff ↗
- 1.6-02012-04-05 · diff ↗
- 1.5-12011-12-13 · diff ↗
- 1.5-0
- 1.4-1
- 1.4-02011-03-27 · diff ↗
- 1.3-12011-02-14 · diff ↗
- 1.3-0
- 1.2-0
- 1.1-22010-09-21 · diff ↗
- 1.1-12010-09-03 · diff ↗
- 1.1-0
- 1.0-2
- 1.0-1
- 1.0-0
- 0.99-6
- 0.99-5
- 0.99-4
- 0.99-3
- 0.99-22009-07-21 · diff ↗ ·
added 8 exports
read.phyDat, write.phyDat, as.phyDat, simSeq, SH.test, bootstrap.pml, bootstrap.phyDat, RF.dist - 0.0-52009-01-22 · diff ↗
- 0.0-4
- 0.0-32008-10-28 · diff ↗ ·
removed 1 export
phyDat.DNAadded 12 exports
PNJ, nni, allSitePattern, dist.ml, pmlPart, pmlCluster, pmlMix, read.aa, allTrees, designTree, designSplits, getEdgeLength - 0.0-22008-07-20 · diff ↗ ·
added 22 exports
pml, optim.pml, parsimony, optim.parsimony, NJ, UNJ, phyDat, phyDat.DNA, dfactorial, ldfactorial, hadamard, fhm, distanceHadamard, treedist, sankoff, fitch, h2st, h4st, dist.logDet, dist.hamming, upgma, write.nexus.splits - RR 2.7.0 released · 2008-04-22
- 0.0-12008-03-25
- RR 2.6.0 released · 2007-10-03
Package metadata
- First published
- 2008-03-25
- Total releases
- 70 / 18 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 192 KB / 4 files
- Download size
- 1.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("phangorn")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.