windscape
An R package for modeling wind dispersal landscapes

Overview
I work a lot with wind data as part of my research exploring how biodiversity is shaped by the effects of global wind patterns on the dispersal of seeds, pollen, and spores between sites. windscape is an R package I developed that provides a set of tools for conducting analyses like these. It includes functions to help you download wind data, model wind connectivity times across a landscape, visualize the results, and test statistical relationships between wind and ecological data.
Key Features
- Wind data acquisition tools to download hourly wind data from the Climate Forecast System Reanalysis (CFSR)
- Connectivity modeling using either least-cost path or random walk algorithms to simulate dispersal across landscapes
- Visualization functions for mapping wind flow patterns and creating connectivity diagrams
- Statistical testing framework for analyzing relationships between wind connectivity and ecological patterns
- Flexible simulation parameters to model different dispersal scenarios based on wind speeds, directions, and barriers
The package handles directional wind flow through “directed cyclic” graph structures, making it particularly suitable for modeling asymmetric connectivity patterns that can’t be addressed with traditional circuit theory approaches.
Applications
windscape is designed for researchers studying:
- Landscape genetics and how gene flow is shaped by wind-mediated dispersal
- Biogeography of wind-dispersed organisms like plants, fungi, and insects
- Climate change vulnerability assessment for wind-dispersed species
- Invasive species spread via airborne pathways
- Aerobiological processes like pollen transport and disease vectors
This framework has been used in my published research on global wind patterns and their effects on genetic differentiation, gene flow, and climate change vulnerability in trees.
Resources
This R package also underlies the WINDSCAPE web app, a little interactive web tool I built that models and visualizes the wind dispersal landscape, or windscape, for any location on earth. You just click the map to select a site, choose between “inbound” (upwind) or “outbound” (downwind) dispersal, and voila: a global map of relative accessibility by wind.
The package is available on GitHub and can be installed with devtools::install_github("matthewkling/windscape").
Select papers that have used windscape:
- Pellitier et al. (2025) Wind patterns influence the dispersal and assembly of North American soil fungal communities. Ecology Letters, 28: e70130
- Deng et al. (2025) Wind direction and strength determine the genetic structure of an insect-pollinated plant across heterogeneous landscape. Journal of Biogeography.
- Kling & Ackerly (2021) Global wind patterns shape genetic differentiation, asymmetric gene flow, and genetic diversity in trees. PNAS]
- Kling & Ackerly (2020) Global wind patterns and the vulnerability of wind-dispersed species to climate change. Nature Climate Change
