rcd {learnPopGen} | R Documentation |
Simulation of reproductive character displacement in an ecological community
Description
This function conducts individual-based, genetically explicit numerical simulation of reproductive character displacement in an ecological community. The model is one of multiple species (with fixed relative abundance) competing to utilize the same signal space. There is both stabilizing selection on the signal trait for detectability, as well as (in multi-species simulations) countervailing selection for divergence due to the costs of erroneous mismating attempts.
Usage
rcd(nsp=3, nindivs=c(700,400,100), w_t=10, gen=c(500,500), figs="on", pf=100, ...)
Arguments
nsp |
Number of species in the simulation. If |
nindivs |
A vector of length |
w_t |
Shape parameter of the Gaussian selection surface for the male signalling trait. |
gen |
Vector containing the number of allopatric generations followed by the number of sympatric generations for simulation. |
figs |
Either |
pf |
Print frequency for the simulation status to screen. |
... |
Optional arguments. |
Value
The function returns a list containing the mean male signal trait and the mean female preference over time. It also (optionally) plots these.
Author(s)
Liam Revell liam.revell@umb.edu
See Also
drift.selection
, genetic.drift
, freqdep
, selection
Examples
## Not run:
obj<-rcd(nsp=2,nindivs=c(500,500))
## End(Not run)