plot_eNMB_: Plot Expected Net Monetary Benefit (eNMB)

View source: R/plot_eNMB_.R

plot_eNMB_R Documentation

Plot Expected Net Monetary Benefit (eNMB)

Description

Plot Expected Net Monetary Benefit (eNMB)

Usage

plot_eNMB_(.PSA_data, ...)

Arguments

.PSA_data

A list of class shinyPSA that contains summary PSA results.

...

Additional arguments that include: legend position .legend_pos = "bottom", willingness-to-pay threshold(s) .wtp_threshold = c(20000, 30000), show WTP threshold(s) lines .show_wtp = TRUE, show WTP threshold(s) labels .label_wtp = TRUE, zoom to min/max values .zoom = FALSE, and zoom to supplied coordinates values .zoom_cords = NULL.

Value

An object of class ggplot.

Examples

## Not run: 
library(ShinyPSA)

PSA_summary <- summarise_PSA_(
  .effs = as_tibble(ShinyPSA::Smoking_PSA$e),
  .costs = as_tibble(ShinyPSA::Smoking_PSA$c),
  .interventions = ShinyPSA::Smoking_PSA$treats)

p <- plot_eNMB_(PSA_summary,
               .legend_pos = NULL,
               .wtp_threshold = c(2000, 10000, 20000, 25000),
               .show_wtp = TRUE,
               .label_wtp = FALSE,
               .zoom = FALSE,
               .zoom_cords = NULL)

p

## End(Not run)


W-Mohammed/ShinyPSA documentation built on April 24, 2022, 6:57 p.m.