plot the optimal strategy as the parameter values change
Arguments
- owsa
An owsa object
- params
vector of parameters to plot
- maximize
whether to maximize (TRUE) or minimize the outcome
- return
either return a ggplot object
plotor a data frame with ranges of parameters for which each strategy is optimal.- plot_const
whether to plot parameters that don't lead to changes in optimal strategy as they vary.
- col
either none, full color, accessible colors, or black and white
- greystart
between 0 and 1. used in greyscale only. smaller numbers are lighter
- greyend
between 0 and 1, greater than greystart.
- txtsize
base text size
- facet_ncol
Number of columns in plot facet.
- facet_nrow
number of rows in plot facet.
- facet_lab_txtsize
text size for plot facet labels
- n_x_ticks
number of x-axis ticks
Value
If return == "plot", a ggplot2 optimal strategy plot derived from the owsa
object, or if return == "data", a data.frame containing all data contained in the plot.
The plot allows us to see how the strategy that maximizes the expectation of the outcome of interest
changes as a function of each parameter of interest.
