plot_sim: plot simulation results for newest flexible config driven...

Description Usage Arguments Value Examples

Description

plot insecticide use and resulting changes in population and resistance

Usage

1
2
3
plot_sim(l_time, plot_emergence = TRUE, plot_thresholds = TRUE,
  verbose = FALSE, time_label = "weeks", plot_type = "month",
  plot_resist = "mortality", leg_pos = "bottomleft", title = NULL)

Arguments

l_time

list containing simulation results

plot_emergence

whether to add emergence rate to population plot

plot_thresholds

whether to add WHO resistance threholds to resistance 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

plot_resist

'frequency' or 'mortality'

leg_pos

legend position defaults to 'bottomleft', other combinations of 'top','right' etc.

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(l_time)
#default run
plot_sim( run_sim())
#modify params
plot_sim( run_sim( insecticide_kill = 0.3, resist_incr = 0.05 ))

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