founder.event: Simulation of a founder event

Description Usage Arguments Value Author(s) See Also Examples

Description

This function simulates genetic drift with a founding event at time etime.

Usage

1
	founder.event(p0=0.5,Ne=1000,Nf=10,ttime=100,etime=50,show="p")

Arguments

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.

show

Two different options for plotting. "p" shows the frequency of the A allele through time; "var" shows the genetic variation in the population, calculated as p*(1-p). The default is show="p".

Value

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

Author(s)

Liam Revell liam.revell@umb.edu

See Also

genetic.drift

Examples

1
2

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