Detecting functional diversity loss under directional, stabilizing, and disruptive models of nonrandom anthropogenic extinction of species.
This repository contains data and code to detect nonrandom extinction patterns by tracking changes in trait means and variances under directional, stabilizing, and disruptive extinction models.
The framework is applied to the Caribbean lizard genus Leiocephalus to evaluate past and predicted-future functional diversity loss.
Humans alter extinction pressures in ways that favor some species over others, causing nonrandom loss of functional diversity. The three classic models of natural selection within species—directional, stabilizing, and disruptive—are widely used to explain trait evolution, but it remains unclear whether they can also capture human-caused nonrandom functional diversity loss among species. Here we develop a framework to test for nonrandom extinction by tracking how trait means and variances change as species with different functional traits are sequentially lost. Applying this approach to the Caribbean lizard genus Leiocephalus, which has already lost 8 of its 32 species and has 10 more threatened with future extinction, we found that past extinctions were directional with respect to ecomorphological traits, as large-bodied species were disproportionately eliminated, likely due to hunting and introduced predators. In contrast, predicted-future extinctions are best explained by stabilizing processes, with species exhibiting extreme appendage morphologies most at risk and species with intermediate appendage lengths least likely to go extinct in the future. Such generalized lizard ecomorphology may be better adapted to the deforested habitats that dominate Caribbean islands today. Such a shift from directional to stabilizing nonrandom extinction is expected when natural extinction pressures are replaced by anthropogenic pressures that directionally shift trait distributions to new adaptive optima. By linking trait-based extinction sequences to classic evolutionary models, our approach provides a generalizable framework for detecting and comparing nonrandom extinction across traits, clades, and ecosystems.
- Simulation of extinction sequences under multiple models:
- random
- directional (large and small)
- stabilizing
- disruptive
- Trait-based tracking of:
- mean shifts
- variance changes
- Model fitting using RMSE and simulation-based comparison
- Application to empirical ecomorphological data
The dataset includes:
- Species-level trait data (body size and morphology)
- Extinction timing estimates (past and predicted-future)
- PCA-derived trait axes
Body size (SVL) is available for all species, while additional traits are available for a subset of extant species and one extinct species.
Extinction sequences are analyzed by comparing observed changes in trait mean and variance to expectations under simulated extinction models.
Model fit is evaluated using:
- Root-mean-square error (RMSE)
- Euclidean distance between observed and simulated trajectories
- Simulation-based goodness-of-fit comparisons
The framework compares observed extinction trajectories to simulated expectations under five extinction models:
- random
- directional (loss of large values)
- directional (loss of small values)
- stabilizing
- disruptive
For each model, extinction is simulated stepwise and changes in trait mean and variance are tracked through time. Model fit is evaluated using:
- root-mean-square error (RMSE) between observed and expected trajectories
- Euclidean distance between observed and simulated goodness-of-fit summaries
- simulation-based comparison of observed fit relative to the distribution of simulated fits
The repository is organized into three main components:
-
R/
Core functions used to simulate extinction sequences and quantify changes in trait distributions.rnre.R— simulate random and nonrandom extinction trajectoriessample_extinction.Rstepwise_extinction.R
-
data/
Processed.rdaobjects used in the analyses, including:- morphology and body-size data
- IUCN threat-status data
- PCA data objects
- simulated extinction outputs
- empirical extinction replicate objects
-
vignettes/
Reproducible analysis workflows for data processing and case-study analyses:vig_00_morphology_clean.Rmd— morphology cleaning and preparationvig_011_extinction.Rmd— body-size extinction analysesvig_020_mPCA.Rmd— PCA constructionvig_021_extinction_pca.Rmd— PCA-based extinction analyses
A typical workflow is:
-
Clean and prepare morphology data
vignettes/vig_00_morphology_clean.Rmd -
Construct PCA trait space
vignettes/vig_020_mPCA.Rmd -
Analyze body-size extinction patterns
vignettes/vig_011_extinction.Rmd -
Analyze multivariate morphological extinction patterns
vignettes/vig_021_extinction_pca.Rmd
Key data objects in data/ include:
morph.rda— specimen-level morphology datamorph_means.rda— species-level morphology summariesmaxsvl.rda— species-level maximum SVL dataiucn.rda— IUCN categories and extinction-order informationdat_pca_tidy*.rda— PCA-ready trait datasets under alternative scaling optionssim_extinction*.rda— simulated extinction outputsrep_emp*.rdaandempirical_extinct_reps*.rda— empirical extinction replicate objectstrait_key.rda— trait metadata/key
The analyses are documented in the vignette files in the order listed above. Each vignette reads processed .rda files from the data/ directory and reproduces the corresponding analysis steps.
Because this repository is organized around vignette workflows rather than a single driver script, users should run the .Rmd files directly.
If you use these code or data, please cite:
Huron, N. A., Hedges, S. B., and Helmus, M. R. In press. Detecting functional diversity loss under directional, stabilizing, and disruptive models of nonrandom anthropogenic extinction of species. Oikos.
Preprint version:
Huron, NA, Hedges, SB, Helmus, MR. 2022. Detecting stabilizing, directional, and disruptive patterns of anthropogenic species loss with general models of nonrandom extinction. bioRxiv. doi:10.1101/2022.09.11.507476.
adaptive landscape, anthropogenic impact, statistical methods, Caribbean, herpetology, island biogeography, lizard, Anthropocene, hunting, deforestation, land development, introduced predators, natural selection, nonrandom extinction, functional diversity, Leiocephalus, body size
