An R package for making windows-of-selection plots related to the evolution of insecticide resistance.
Development by Andy South, 2019.
Used in paper accepted to Evolutionary Applications, November 2019.
For script creating exact figures in paper see : https://github.com/AndySouth/windows-of-selection-paper
The code is licensed GPL-3, please cite the paper if you use it.
#install.packages("devtools") library(devtools) install_github('AndySouth/wos') library(wos)
Using the package
Window of selection with just two genotypes, resistant and susceptible, RR & SS.
Window of dominance, including heterozygotes
Showing selective advantage.
Showing simulation of time-to-resistance (takes a minute or so to run).
Modifying window of dominance
Illustrative polygenic window of selection.