View source: R/sensitivity_print.R
plot.dsa | R Documentation |
Plot the results of a sensitivity analysis as a tornado plot.
## S3 method for class 'dsa'
plot(
x,
type = c("simple", "difference"),
result = c("cost", "effect", "icer"),
strategy = NULL,
widest_on_top = TRUE,
limits_by_bars = TRUE,
resolve_labels = FALSE,
shorten_labels = FALSE,
remove_ns = FALSE,
bw = FALSE,
...
)
x |
A result of |
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? |
limits_by_bars |
logical. Should the limits used for each parameter be printed in the plot, next to the bars? |
resolve_labels |
logical. Should we resolve all labels to numbers instead of expressions (if there are any)? |
shorten_labels |
logical. Should we shorten the presentation of the parameters on the plot to highlight where the values differ? |
remove_ns |
Remove variables that are not sensitive. |
bw |
Black & white plot for publications? |
... |
Additional arguments passed to |
Plot type simple
plots variations of single strategy
values, while difference
plots incremental values.
A ggplot2
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.