Description Usage Arguments Value Examples
rot_plot_resistance plot rotation simulation resistance results
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
df_res2 |
dataframe of resistance results from run_rot() |
plot_refuge |
whether to plot refuge as well as intervention |
mort_thresh |
mortality threshold for switching insecticides, default 0.9, only used if mort_or_freq is mort |
freq_thresh |
resistance frequency threshold for switching insecticides, default 0.5, only used if mort_or_freq is freq |
mort_or_freq |
whether threshold for insecticide change is mortality 'mort' or resistance frequency 'freq' |
logy |
whether to use log scale for y axis |
add_gens_under50 |
whether to add a label of num generations under 50percent resistance |
df_resanother |
exploratory option to plot results of another scenario on the same graph |
lwd |
line thickness for resistance curves |
title |
optional title for plot, NULL for no title, 'auto' for auto generated title |
plot |
whether to plot results |
plot_mort |
whether to add mortality to plots |
ggplot object
1 2 | df_res2 <- run_rot()
rot_plot_resistance(df_res2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.