| founder.event | R Documentation |
This function simulates genetic drift with a founding event / population bottleneck at time etime.
founder.event(p0=0.5, Ne=1000, Nf=10, ttime=100, etime=50, show="p", ...)
p0 |
Starting frequency for the A allele. |
Ne |
Effective population size at the start of the simulation and after the founding event. |
Nf |
Size of the founding population. |
ttime |
Total time of the simulation. |
etime |
Time for the founding event. Can either be a single generation, or a sequence of generations (e.g., |
show |
Two different options for plotting. |
... |
optional arguments. Presently, the only optional argument in |
The function creates one of two different plots, depending on the value of show.
The function also invisibly returns an object of class "founder.event" which can be printed or plotted using corresponding print and plot methods. (See examples.)
Liam Revell liam.revell@umb.edu
drift.selection, genetic.drift
founder.event() p<-founder.event(show="variation") print(p) plot(p,show="p",ltype="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.