plot_tornado | R Documentation |
Creates a tornado plot from a data frame generated by dsa_icer()
.
plot_tornado(df, metric = "ICER")
df |
A data frame from |
metric |
Character string. Either "ICER" or "NMB". Must match the column name in |
A ggplot2 tornado-style line plot.
# Simulated deterministic sensitivity analysis result
dsa_result <- data.frame(
Parameter = c("Cost A", "Cost B", "Effect A"),
ICER = c(1000, 1200, 800),
NMB = c(20000, 19500, 21000)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.