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,
  ...
)

Arguments

x

A result of run_dsa().

type

Type of plot (see details).

result

Plot cost, effect, or ICER.

strategy

Name or index of strategies to plot.

widest_on_top

logical. Should bars be sorted so widest are on top?

limits_by_bars

logical. Should the limits used for each parameter be printed in the plot, next to the bars?

resolve_labels

logical. Should we resolve all labels to numbers instead of expressions (if there are any)?

shorten_labels

logical. Should we shorten the presentation of the parameters on the plot to highlight where the values differ?

remove_ns

Remove variables that are not sensitive.

bw

Black & white plot for publications?

...

Additional arguments passed to plot.

Value

A ggplot2 object.

Details

Plot type simple plots variations of single strategy values, while difference plots incremental values.