Plot the results of a sensitivity analysis as a tornado plot.
# S3 method for dsa
plot(
x,
type = c("simple", "difference"),
result = c("cost", "effect", "icer"),
strategy = NULL,
widest_on_top = TRUE,
limits_by_bars = TRUE,
resolve_labels = FALSE,
shorten_labels = FALSE,
remove_ns = FALSE,
bw = FALSE,
...
)
A ggplot2
object.
A result of run_dsa()
.
Type of plot (see details).
Plot cost, effect, or ICER.
Name or index of strategies to plot.
logical. Should bars be sorted so widest are on top?
logical. Should the limits used for each parameter be printed in the plot, next to the bars?
logical. Should we resolve all labels to numbers instead of expressions (if there are any)?
logical. Should we shorten the presentation of the parameters on the plot to highlight where the values differ?
Remove variables that are not sensitive.
Black & white plot for publications?
Additional arguments passed to plot
.
Plot type simple
plots variations of single strategy
values, while difference
plots incremental values.