selection: Numerical analysis of biallelic locus frequency independent...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function performs numerical analysis of a simple biallelic selection model.

Usage

1
	selection(p0=0.01,w=c(1.0,0.9,0.8),time=100,show="p",pause=0)

Arguments

p0

Starting frequency for the A allele.

w

Fitnesses for the three genotypes in the following order: AA, Aa, aa.

time

Number of generations to run the analysis.

show

Various options for plotting. "p" shows the frequency of A through time; "surface" plots the mean fitness as a function of p; "deltap" shows the change in p as a function of p; "cobweb" creates a cobweb plot showing p(t) by p(t+1). The default is show="p".

pause

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

Value

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

Author(s)

Liam Revell liam.revell@umb.edu

See Also

freqdep

Examples

1
2
	selection(w=c(1.0,0.8,0.8),time=500)
	selection(w=c(1.0,1.0,0.0),show="surface")

KlausVigo/popgenSim documentation built on May 8, 2019, 5:38 p.m.