Description Usage Arguments Value Author(s) See Also Examples
Simulates migration, natural selection, and genetic drift. Selection can be in opposite directions in the two populations experiencing gene flow.
1 2 |
p0 |
starting frequency for the A allele in each of two populations. |
Ne |
effective population size for each of two populations. |
w |
fitnesses of the three genotypes (AA, Aa, and aa, in that order) in each of the two populations. |
m |
rates of migration from the first population to the second, and from the second population to the first, in that order. This value is best interpreted as the probability that an individual born in population 1 will migrate to population 2 before reproduction, and vice versa. |
ngen |
total time, in number of generations, for the simulation. |
colors |
colors to use for plotting. |
... |
optional arguments. Presently, the only optional argument for |
The function creates a plot and invisibly returns a list containing the allele frequency through time for each of the two simulated populations.
The returned object is of class "msd"
and can be printed or re-plotted using corresponding print
or plot
methods. (See examples.)
Liam Revell liam.revell@umb.edu
1 2 3 4 5 6 |
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Object of class "msd" containing the results from a numerical simulation
of drift, selection, and migration within and between two populations.
The following parameters were used in the simulation:
Ne[1] Ne[2]
100 100
m[1->2] m[2->1]
0.1 0.1
w(AA) w(Aa) w(aa)
pop'n 1 1.0 0.9 0.8
pop'n 2 0.8 0.9 1.0
To plot enter plot('object_name') at the command line interface.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.