sim_experiments | R Documentation |
Deterministic simulations of multiple fields of aphids and wasps.
sim_experiments(
clonal_lines,
n_fields = 2,
max_t = 250,
K = 12500,
alate_b0 = -5,
alate_b1 = 0.0022,
alate_field_disp_p = 0.1,
K_y_mult = 1/1.57,
s_y = populations$s_y,
a = wasp_attack$a,
k = wasp_attack$k,
h = wasp_attack$h,
rel_attack = wasp_attack$rel_attack,
wasp_density_0 = c(3, 0),
wasp_delay = 8,
wasp_disp_m0 = 0,
wasp_disp_m1 = 0,
wasp_field_attract = 1,
constant_wasps = FALSE,
mum_smooth = 0.4,
pred_rate = 0.1,
extinct_N = 1,
sep_adults = FALSE,
save_every = 1,
perturb = NULL,
show_progress = FALSE
)
clonal_lines |
A |
n_fields |
The number of fields to simulate.
Wasps operate at the field level, whereas aphids operate at the
plant level.
Both wasps and aphids operate separately across fields but can be
connected via dispersal (see arguments |
max_t |
How many days to simulate. Defaults to |
K |
Aphid density dependence.
Defaults to |
alate_b0 |
The proportion of offspring from apterous aphids is
|
alate_b1 |
The proportion of offspring from apterous aphids is
|
alate_field_disp_p |
Proportion of alates from each field that
are added to the dispersal pool.
After adding alates to the pool, they are then evenly distributed
to all fields.
This happens only on days indicated by |
K_y_mult |
The number multiplied by |
s_y |
Daily survival rate of adult wasps.
Defaults to |
a |
Parasitoid attack rate. Defaults to the internal object
|
k |
Aggregation parameter of the negative binomial distribution.
Defaults to the internal object |
h |
Parasitoid handling time. Defaults to the internal object
|
rel_attack |
Relative parasitoid attack rate among instars.
Defaults to |
wasp_density_0 |
Starting adult wasp density.
Must be a single number or a |
wasp_delay |
Delay in days between when the aphids start and the
wasps are added.
This can be a single integer or a |
wasp_disp_m0 |
Proportion of adult wasps from each field that
are added to the dispersal pool when there are no aphids present.
After adding wasps to the pool, they are then evenly distributed
to all fields.
This happens only on days indicated by |
wasp_disp_m1 |
Effect of aphid density on wasp emigration from a patch.
Emigration is |
wasp_field_attract |
Relatively attractiveness of fields to wasps.
This affects the proportion of wasps that immigrate from the dispersal
pool to each field.
It doesn't change the number of wasps that leave fields.
This can be a single numeric or a numeric vector of length |
constant_wasps |
Logical for whether to keep adult wasps at the same
density throughout simulations.
This can be a single logical or a |
mum_smooth |
Proportion of mummies that will NOT take exactly 3 days
to develop. As this value approaches 2/3, it will provide greater
smoothing of wasp numbers through time.
Defaults to |
pred_rate |
Daily predation rate on aphids and mummies.
Defaults to |
extinct_N |
Threshold below which a line is considered extinct.
Defaults to |
save_every |
Abundances will be stored every |
perturb |
Information for perturbing populations in the simulations.
It should be a dataframe with 4 columns:
* |
show_progress |
Boolean for whether to show progress bar.
Defaults to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.