taxodist: Taxonomic Hierarchy Distances and Lineage Analysis

Computes distances between taxonomic hierarchy nodes using lineage data retrieved from The Taxonomicon <http://taxonomicon.taxonomy.nl>, the Open Tree of Life reference taxonomy (Rees and Cranston, 2017) <doi:10.3897/BDJ.5.e12581>, or the NCBI Taxonomy (Schoch et al., 2020) <doi:10.1093/database/baaa062>. For distinct nodes, distance is defined as the reciprocal of the depth of their most recent common ancestor; identical nodes have distance zero. This definition yields an ultrametric within each connected hierarchy. Path length, Wu-Palmer, and rank-based distances are also available, together with the taxonomic diversity and distinctness indices of Clarke and Warwick (1998) <doi:10.1046/j.1365-2664.1998.3540523.x> and their randomization test, the taxonomic dissimilarities between samples of Clarke, Somerfield and Chapman (2006) <doi:10.1016/j.jembe.2005.12.017>, and standardized effect sizes of mean pairwise and nearest-taxon distances (Webb et al., 2002) <doi:10.1146/annurev.ecolsys.33.010802.150448>. Functions are provided for auditable name resolution, comparison of classifications, online or user-supplied lineage analysis, node ranks, clade membership, pairwise, matrix, and cross-set distance calculation, classification trees with named clades, hierarchical clustering, principal coordinates analysis, portable and comparable JSON analysis bundles, and cache management. Distance matrices are returned as base R 'dist' objects. The distances represent classification depth rather than evolutionary time or phylogenetic branch length.

Version: 1.1.0
Depends: R (≥ 4.1.0)
Imports: httr (≥ 1.4.0), rvest (≥ 1.0.0), stringr (≥ 1.4.0), cli (≥ 3.0.0), jsonlite (≥ 1.8.0), utils, stats, graphics, tools, xml2 (≥ 1.3.0)
Suggests: testthat (≥ 3.0.0), mockery, knitr, rmarkdown, ape, vegan
Published: 2026-11-26
DOI: 10.32614/CRAN.package.taxodist
Author: Rodrigo Fonseca Villa ORCID iD [aut, cre]
Maintainer: Rodrigo Fonseca Villa <rodrigo03.villa at gmail.com>
BugReports: https://github.com/rodrigosqrt3/taxodist/issues
License: GPL (≥ 3)
URL: https://github.com/rodrigosqrt3/taxodist
NeedsCompilation: no
SystemRequirements: internet access for online taxonomy retrieval
Language: en-US
Citation: taxodist citation info
Materials: NEWS
In views: Phylogenetics
CRAN checks: taxodist results

Documentation:

Reference manual: taxodist.html , taxodist.pdf
Vignettes: Introduction to taxodist (source, R code)
Methodological Notes and Limitations (source, R code)
Taxonomic Sources and Community Analyses (source, R code)
Statistical Applications of taxodist (source, R code)

Downloads:

Package source: taxodist_1.1.0.tar.gz
Windows binaries: r-devel: taxodist_1.0.0.zip, r-release: taxodist_1.0.0.zip, r-oldrel: taxodist_1.0.0.zip
macOS binaries: r-release (arm64): taxodist_1.1.0.tgz, r-oldrel (arm64): taxodist_1.1.0.tgz, r-release (x86_64): taxodist_1.1.0.tgz, r-oldrel (x86_64): taxodist_1.1.0.tgz
Old sources: taxodist archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=taxodist to link to this page.