tornado_plot: Draw a tornado diagram.

View source: R/utils.R

tornado_plotR Documentation

Draw a tornado diagram.

Description

A function to plot a tornado diagram, given a data frame of model variable names, their confidence limits and the values of the outcome variable for each. The outcome measure (x axis) is expected to be cost, ICER, net monetary benefit, etc., but can be any meaningful quantity.

Usage

tornado_plot(to, outcome_mean, xlab = "")

Arguments

to

A data frame with one row per horizontal bar of the tornado plot, with columns:

Description

Description of the variable.

Units

Units of the variable.

LL

Lower limit of the variable.

UL

Upper limit of the variable.

outcome.min

Minimum value of the outcome measure.

outcome.max

Maximum value of the outcome measure.

outcome_mean

Mean (base case) outcome.

xlab

Label for x axis


rdecision documentation built on April 3, 2025, 6:09 p.m.