Learn R Programming

heemod (version 0.5.1)

plot.eval_sensitivity: 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"), model = 1, widest_on_top = TRUE, ...)

Arguments

x
A result of run_dsa.
type
Type of plot (see details).
result
Plot cost, effect, or ICER.
model
Name or index of model to plot.
widest_on_top
logical. Should bars be sorted so widest are on top?
...
Additional arguments passed to plot.

Value

A ggplot2 object.

Details

Plot type simple plots variations of single model costs, while difference plots cost difference between the specified model and the reference model.