Learn R Programming

heemod (version 0.7.1)

plot.dsa: Plot Sensitivity Analysis

Description

Plot the results of a sensitivity analysis as a tornado plot.

Usage

"plot"(x, type = c("simple", "difference"), result = c("cost", "effect", "icer"), strategy = NULL, widest_on_top = TRUE, 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?
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.