bioRxivEcologyPreprint
tidysdm: leveraging the flexibility of tidymodels for Species Distribution Modelling in R
M. Leonardi, M. Colucci, A. V. Pozzi, E. M. L. Scerri, A. Manica
Abstract
In species distribution modelling (SDM), it is common practice to explore multiple machine-learning algorithms and combine their results into ensembles. This is no easy task in R: different algorithms were developed independently, with inconsistent syntax and data structures. Specialised SDM packages integrate multiple algorithms by creating a complex interface between the user (providing a unified input and receiving a unified output), and the back-end code (that tackles the specific needs depending on the algorithm). This requires a lot of work to create and maintain the right interface, and it prevents an easy integration of other methods that may become available. Here we present tidysdm, an R package that solves this problem by taking advantage of the tidymodels universe. Being part of the tidyverse, (i) it has standardised grammar and data structures providing a coherent interface for modelling, (ii) includes packages designed for fitting, tuning, and validating various models, and (iii) allows easy integration of new algorithms and methods. tidysdm allows easy, flexible and quick species distribution modelling by supporting standard algorithms, including additional SDM-oriented functions, and giving the opportunity of using any algorithm or procedure to fit, tune and validate a large number of different models. Additionally, it provides further functions to easily fit models based on paleo/time-scattered data. The package includes two vignettes detailing standard procedures for present-day and time-scattered data. These vignettes also showcase the integration with pastclim (Leonardi et al. 2023) to allow easier access to palaeoclimatic data series, if needed, but users can bring in their own climatic data in standard formats.
- research focus: benchmarking
- research focus: software / tool
- approach: deep learning
- approach: statistical model
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- intSDM : an R package for building a reproducible workflow for the field of integrated species distribution models
P. S. Mostert, R. Bjorkas, … S. W. Perrin·bioRxiv·Sep 15, 2022
- PointedSDMs -- an R package to help facilitate the construction of integrated species distribution models
P. Mostert, R. O'Hara·bioRxiv·Oct 6, 2022
- jsdmstan: An R package for fitting joint species distribution models in Stan
Fiona M. Seaton·bioRxiv·Nov 10, 2025
- The best of two worlds: using stacked generalization for integrating expert range maps in species distribution models
J. Oeser, D. Zurell, … T. Kuemmerle·bioRxiv·Mar 12, 2024
- Incorporating environmental time series into species distribution models
A. M. Smith, C. Capinha, A. M. Kramer·bioRxiv·Oct 26, 2022
- Towards the automation of Species Distribution Modelling: The AutoMaxEnt routine
Gonzalo Albaladejo‐Robles, Jessica L. Abbate, David W. Redding·bioRxiv·Sep 23, 2026