Skip to contents

Tornado plot of a one-way sensitivity analysis

Usage

owsa_tornado(
  owsa,
  return = c("plot", "data"),
  txtsize = 12,
  min_rel_diff = 0,
  col = c("access", "full", "bw"),
  n_y_ticks = 8,
  ylim = NULL,
  ybreaks = NULL,
  select_str = NULL,
  outcome_name = NULL
)

Arguments

owsa

an owsa object

return

choose whether to return the plot, underlying data, or both

txtsize

text size used for the plot; input for add_common_aes function

min_rel_diff

this function only plots parameters that lead to a relative change in the outcome greater than or equal to min_rel_diff, which must be between 0 and 1. The default (0) is that no strategies are filtered.

col

color used for the plot; input for add_common_aes function

n_y_ticks

number of y-axis ticks; input for add_common_aes function

ylim

vector of y-axis limits, or NULL, which sets limits automatically; input for add_common_aes function

ybreaks

vector of y-axis breaks, will override n_y_ticks if provided; input for add_common_aes function

select_str

vector of strategy names to examine (max of 2). If none are input, it will default to choose only the first of the strategies in the owsa object.

outcome_name

The name of the outcome to show by strategy, either IMB, NMB, or ICER

Value

If return == "plot", a ggplot2 tornado plot derived from the owsa object, or if return == "data", a data.frame containing all data contained in the plot. A tornado plot is a visual aid used to identify which parameters are driving most of the variation in a specified model outcome.