Description Usage Arguments Value
plot the optimal strategy as the parameter values change
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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 |
plot_const |
whether to plot parameters that don't lead to changes in optimal strategy as they vary. |
col |
either none, full color, 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 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.