wos_plot_input: plot one simulation input for 'windows of selection'...

Description Usage Arguments Value Examples

View source: R/wos_plot_input.R

Description

plot one simulation input for 'windows of selection' following simulation run

Usage

1
2
3
wos_plot_input(dfsim, x = "conc", y = "dom_resist", xlab = NULL,
  ylab = NULL, title = "selected simulation inputs", plot = TRUE,
  xreverse = TRUE)

Arguments

dfsim

data on concentration and time-to-resistance output from simulation run from wos_sim()

x

name of column of x data

y

name of column of y data

xlab

label of column of x data for plot

ylab

label of column of y data for plot

title

title for ggplot

plot

whether to plot

xreverse

whether to reverse x axis for declining concentration

Value

ggplot object

Examples

1
2
dfsim <- wos_diagram(sim=TRUE, rr_cost=0, plot=FALSE)
wos_plot_input(dfsim, y='dom_resist', ylab='dominance')

AndySouth/wos documentation built on Nov. 15, 2019, 10:05 a.m.