wos_plot_sim: plot time-to-resistance for 'windows of selection' following...

Description Usage Arguments Value Examples

View source: R/wos_plot_sim.r

Description

plot time-to-resistance for 'windows of selection' following simulation run

Usage

1
2
3
4
5
wos_plot_sim(dfsim, x = "conc", y = "time_to_resistance0.5",
  shape = NULL, ylab = "time to\nresistance", xlab = NULL,
  xtxt = FALSE, title = "simulation results", plot = TRUE,
  xreverse = TRUE, xlog = FALSE, ylog = FALSE, addgrid = TRUE,
  no_sr = FALSE)

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

shape

name of column to determine shape of symbols

ylab

label of column of y data for plot

xlab

label of column of x data for plot

xtxt

whether to number x axis

title

title for ggplot

plot

whether to plot

xreverse

whether to reverse x axis for declining concentration

xlog

whether to log x axis

ylog

whether to log y axis

addgrid

DOESN'T WORK whether to add grid

no_sr

option for dealing with data with no SR heteroxzygotes plots dominance 0&1 with diff symbols

Value

ggplot object

Examples

1
2
dfsim <- wos_diagram(sim=TRUE, conc_n=10, rr_cost=0, plot=FALSE)
wos_plot_sim(dfsim)

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