The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

R-CMD-check CRAN status

phylospatial

phylospatial is an R package for spatial phylogenetic diversity analysis—accounting for evolutionary relationships among taxa when describing biodiversity patterns. The package provides functions for building and analyzing phylospatial data:

A key feature of phylospatial is full support for quantitative community data, including occurrence probabilities (e.g., from species distribution models) and abundances, in addition to binary presence-absence data. This avoids information loss from thresholding continuous data, and enables new analyses not available in other spatial phylogenetic R packages.

Vignettes

Installation

# you can install the package from CRAN:
install.packages("phylospatial")

# or the development version from GitHub:
remotes::install_github("matthewkling/phylospatial")

Quick start

library(phylospatial)
ps <- moss() # load example data
div <- ps_diversity(ps) # calculate diversity metrics
terra::plot(div)

Citation

To cite phylospatial in publications, please use:

Kling, M. (2025). phylospatial: an R package for spatial phylogenetic analysis with quantitative community data. Methods in Ecology and Evolution 16:1075–1083. DOI 10.1111/2041-210x.70056

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.