Description Usage Arguments Value Examples
pop only (with emergence) not interventions or resistance
1 2 3 |
l_time |
list containing simulation results |
plot_emergence |
whether to add emergence rate to population plot |
verbose |
whether to output diagnostics to console |
time_label |
time label to add to x axis, default='weeks' |
plot_type |
'month' to just plot points per month, '6month' to plot 6months |
subset_data |
whether to subset_data, set to FALSE when calling from other plot funcs |
leg_pos |
legend position defaults to 'bottomleft', other combinations of 'top','right' etc. |
axis_x |
whether to add x axis to pop lot. default FALSE because axis shown under lower plot |
title |
plot title added at top |
maybe nothing, produces a plot
1 2 3 4 5 6 7 | #blank plot
l_time <- init_sim(20)
plot_sim_pop(l_time)
#default run
plot_sim_pop( run_sim())
#modify params
plot_sim_pop( run_sim( insecticide_kill = 0.3, resist_incr = 0.05 ))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.