plot_sim_pop: plot simulation pop results for newest flexible config driven...

Description Usage Arguments Value Examples

Description

pop only (with emergence) not interventions or resistance

Usage

1
2
3
plot_sim_pop(l_time, plot_emergence = TRUE, verbose = FALSE,
  time_label = "weeks", plot_type = "month", subset_data = TRUE,
  leg_pos = "bottomleft", axis_x = FALSE, title = NULL)

Arguments

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

Value

maybe nothing, produces a plot

Examples

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 ))

AndySouth/resistanceGame documentation built on May 5, 2019, 6:01 a.m.