Predict and Visualize Population-Level Changes in Allele Frequencies in Response to Climate Change
Overview
Methods (doi:10.7717/peerj.11534) are provided of calibrating and predicting shifts in allele frequencies through redundancy analysis ('vegan::rda()') and generalized additive models ('mgcv::gam()'). Visualization functions for predicted changes in allele frequencies include 'shift.dot.ggplot()', 'shift.pie.ggplot()', 'shift.moon.ggplot()', 'shift.waffle.ggplot()' and 'shift.surf.ggplot()' that are made with input data sets that are prepared by helper functions for each visualization method. Examples in the documentation show how to prepare animated climate change graphics through a time series with the 'gganimate' package. Function 'amova.rda()' shows how Analysis of Molecular Variance can be directly conducted with the results from redundancy analysis.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 10
- Examples that run
- 60%6 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 82%
- Return-value docs
- 100%
- Help pages citing references
- 50%
Downloads
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.1-3Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2023-10-28
- 1.1-22023-10-28 · diff ↗
- archivedRemoved from CRAN2023-09-09requires archived package 'BiodiversityR'
- RR 4.3.0 released · 2023-04-21
- 1.12022-09-07 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.0-22021-08-14 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.0-1
- 0.9-22021-01-29 · diff ↗
- 0.92021-01-26
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-01-26
- Total releases
- 7 / 5 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 131 KB / 7 files
- Download size
- 787 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("AlleleShift")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.