mutation.selection: Gene frequencies over time under mutation-selection balance

Description Usage Arguments Value Author(s) See Also Examples

View source: R/popgen.R

Description

This function performs numerical analysis of mutation-selection balance with mutation from A to a and selection against (either or both of) Aa and aa.

Usage

1
	mutation.selection(p0=1.0,w=c(1,1),u=0.001,time=100,show="q",pause=0,ylim=c(0,1))

Arguments

p0

Starting frequency for the A allele.

w

Fitnesses of the heterozygote (Aa) and homozygote deleterious (aa) genotypes. The fitness of AA is assumed to be 1.0.

u

Rate at with A mutates to a.

time

Number of generations to run the analysis.

show

Two options for plotting. "q" shows the frequency of a through time; "fitness" plots the mean fitness over time. The default is show="q".

pause

Pause between generations. pause=0.01 (for instance) might smooth animation.

ylim

Limits on the y-axis for plotting.

Value

The function creates one of two possible plots, depending on the value of show.

Author(s)

Liam Revell [email protected]

See Also

genetic.drift, selection

Examples

1
	mutation.selection(w=c(1,0),time=100,ylim=c(0,0.1))

KlausVigo/popgenSim documentation built on May 10, 2017, 5:08 a.m.