Skip to contents

Wind data

Download hourly wind, and represent it as a time series (wind_series) or a single snapshot (wind_field).

download_wind_data()
Download hourly wind data from NCAR
download_land_mask()
Download a land-water layer from NCAR
wind_series()
Create a wind_series
wind_times()
Get the time of each step in a wind_series
subset_series()
Select time steps from a wind_series
wind_field()
Create a wind_field
mean(<wind_series>)
Mean wind of a wind_series

Wind roses

Summarize a long time series of wind conditions as the conductance from each cell to its eight neighbors—the basis of both connectivity models.

wind_rose()
Build or load a wind rose
download_wind_rose()
Download a pre-built wind rose
wind_rose_catalog()
Catalog of pre-built wind roses
wind_rose_cache()
Manage the wind rose download cache
combine_roses()
Combine wind roses built from different time periods
weight_conductance()
Weight a wind rose's conductances
net_flow()
Net flow of a wind rose, as a wind field
aggregate(<wind_rose>) disagg(<wind_rose>) resample(<wind_rose>,<ANY>) project(<wind_rose>)
Changing the grid of a wind rose

Least-cost model

Travel time along the fastest route through the wind graph.

least_cost()
Least-cost travel time surface
least_cost_paths()
Least-cost paths
pairwise_least_cost()
Pairwise least-cost travel times among sites
wind_graph()
Build a wind connectivity graph

Random walk model

Dispersal of material spreading across the grid in proportion to the wind.

random_walk()
Simulate wind dispersal by random walk
random_walk_paths()
Paths of material through a random walk
pairwise_random_walk()
Pairwise random walk connectivity among sites
rw_exit_prob()
Probability of exiting a random walk's domain
rw_self_retention()
Self-contribution of each source cell in a stream-mode random walk
rw_max_step()
Maximum iteration duration for a random walk
iter_length()
Iteration step length of a random walk
check_cell_distance()
Check how grid cells distort distances among sites
downscale()
Downscale a wind rose to higher spatial resolution
cell_distance()
Pairwise distances between cell centroids
ws_summarize()
Summary statistics for a windshed

Hypothesis testing

Test hypotheses about wind connectivity using pairwise matrices of wind, gene flow, or other relationships among sites.

mantel_test()
Mantel test
pairwise_ratios()
Convert asymmetric pairwise matrix to reciprocally symmetrical matrix
pairwise_means()
Convert asymmetric pairwise matrix to symmetrical pairwise means
point_distance()
Pairwise distances between points

Plotting

ggplot2 layers for wind data and connectivity results.

Geoms

geom_wind_rose() stat_wind_rose()
Wind rose glyphs: a map of local wind roses
geom_wind_arrow() stat_wind_arrow()
Wind field arrows
geom_wind_trail() stat_wind_trail()
Wind trails and streamlines
geom_wind_path()
Draw existing wind trails or paths
scale_fill_bearing() scale_colour_bearing() scale_color_bearing()
Color scales for wind direction
fortify(<wind_rose>) fortify(<wind_field>) fortify(<wind_series>) fortify(<random_walk>)
Convert windscape objects to data frames for ggplot2

Streamlines and particle trails

wind_trails()
Trace particle trails through a wind field
generate_particles()
Generate initial particle locations

Datasets

windscape_example()
Example wind data sets
birch
Silver birch landscape genetic data from Tsuda et al. (2017)

Classes and methods

wind_series-class
An S4 object class representing a wind field time series
wind_field-class
An S4 object class representing a wind field
wind_rose-class
An S4 object class representing a wind rose
wind_graph-class
An S4 object class representing a wind graph
`[[`(<wind_series>,<ANY>,<ANY>) `[[`(<wind_field>,<ANY>,<ANY>) `[[`(<wind_rose>,<ANY>,<ANY>) subset(<wind_series>) subset(<wind_field>) subset(<wind_rose>) c(<wind_series>) c(<wind_field>) c(<wind_rose>)
Selecting and combining layers of windscape objects
geoCorrection(<wind_graph>,<ANY>)
geoCorrection is not applicable to wind graphs