[PUBLICATION; R PACKAGE] A toolkit for spatial phylogenetic analysis.
phylospatial
is an R package for spatial phylogenetic analysis, a field that focuses on accounting for evolutionary relationships among taxa when describing biodiversity patterns. The package grew out of code I developed for research on plant diversity and conservation in California, and is described in a paper in Methods in Ecology and Evolution. It provides a flexible framework for analyzing biodiversity patterns that incorporates both geographic and evolutionary dimensions.
A key innovation is that unlike other spatial phylogenetic libraries, all functions in this package work with continuous community data (occurrence probabilities or abundances) in addition to binary presence-absence data. These quantities are treated as weights in all computations, avoiding the need to discard information by thresholding continuous data.
The package is particularly useful for:
Citation: Kling, M.M. (2025). phylospatial: an R package for spatial phylogenetic analysis with quantitative community data. Methods in Ecology and Evolution, 2025;00:1–9 https://doi.org/10.1111/2041-210X.70056
The package is available on CRAN and includes a comprehensive set of vignettes covering data handling, alpha diversity, beta diversity, and conservation prioritization workflows. The development version is available on GitHub, where you can also find detailed documentation and examples.