Description Usage Arguments Value Examples
View source: R/sim.metapopgen.coral.R
This function is built upon sim.metapopgen.monoecious
to simulate the genetics of coral metapopulations. Each coral colony is considered as an individual.
There are five stage-classes, corresponding to age 0+, age 1+, age 2+, age 3+ and dead individuals. Individuals can persist in the 3+ class. Individuals in the "dead" class are coral skeletons. The "survival" probability of the dead class indicates whether a coral skeleton persists or is destroyed.
Recruitment is dependent on the total number of individuals in the deme, including dead individuals, because they occupy space.
The parameter kappa0
is the maximum number of individuals in the deme (carrying capacity).
1 | sim.metapopgen.coral(N1, sigma, phi_F, phi_M, kappa0, ...)
|
N1 |
Number of individuals at the beginning of the simulation. 3-D array giving the number of individuals of each genotype in each deme and each of the five stage-classes (0+, 1+, 2+, 3+ and dead) at the beginning of the simulation. The first dimension is the genotype, the second dimension is the deme and the third dimension is the stage-class. To be used when |
sigma, phi_F, phi_M |
They have the same meaning as in |
kappa0 |
2-D array of length c(n,T_max). Carrying capacity used to calculate the density-dependent settler survival probabilities. |
... |
All the other parameters to be passed to the function, as in |
The same as in sim.metapopgen.monoecious
.
1 2 3 | # Simple example with 2 demes, 2 alleles and 5 years of simulations
data(Dataset.coral)
sim.metapopgen.coral(input.type="array", N1= N1, sigma = sigma, phi_M = phi_M, phi_F = phi_F, mu = mu, delta = delta, kappa0 = kappa0, T_max = T_max, save.res = save.res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.