simulate_di | R Documentation |
Simulates trait evolution after branching.
simulate_di(xstart, ntimes, pars, init, mu = 0.01, sigma = 0.1, dodge = 0.001)
xstart |
Starting trait value |
ntimes |
The number of time steps to simulate for |
pars |
An unevaluated parameter-list (e.g. as returned by
|
init |
A vector of four starting values for solving of the demographic equilibrium |
mu |
The mutation rate of the trait (per time step) |
sigma |
The (standard deviation of) mutational step size upon mutation |
dodge |
How much to displace each morph from the branching point once branching has occurred |
See ?simulate
.
A tibble containing the trait values in the two morphs at each time point.
find_equilibrium_di
, get_gradient_di
pars <- get_default_pars()
simulate_di(0, 10, pars, init = rep(1000, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.