plot the optimal strategy as the parameter values change
owsa_opt_strat(
owsa,
params = NULL,
maximize = TRUE,
return = c("plot", "data"),
plot_const = TRUE,
col = c("full", "bw"),
greystart = 0.2,
greyend = 0.8,
txtsize = 12,
facet_ncol = 1,
facet_nrow = NULL,
facet_lab_txtsize = NULL,
n_x_ticks = 10
)
An owsa object
vector of parameters to plot
whether to maximize (TRUE) or minimize the outcome
either return a ggplot object plot
or a data frame with
ranges of parameters for which each strategy is optimal.
whether to plot parameters that don't lead to changes in optimal strategy as they vary.
either none, full color, or black and white
between 0 and 1. used in greyscale only. smaller numbers are lighter
between 0 and 1, greater than greystart.
base text size
Number of columns in plot facet.
number of rows in plot facet.
text size for plot facet labels
number of axis ticks
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.