plot.evsi: Plot of Expected Value of Sample Information (EVSI)

Description Usage Arguments Value See Also

View source: R/evsi.R

Description

Plots the evsi object created by calc_evsi. EVSI is either plotted as a function of additional sample size for each willingness-to-pay threshold provided, or as a function of each willingness-to-pay threshold, depending upon the usage of calc_evsi used to create the evsi object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## S3 method for class 'evsi'
plot(
  x,
  txtsize = 12,
  currency = "$",
  effect_units = "QALY",
  n_y_ticks = 8,
  n_x_ticks = 20,
  xbreaks = NULL,
  ybreaks = NULL,
  xlim = c(0, NA),
  ylim = NULL,
  col = c("full", "bw"),
  ...
)

Arguments

x

object of class evsi, produced by function calc_evsi

txtsize

base text size

currency

string with currency used in the cost-effectiveness analysis (CEA). Default: $, but it could be any currency symbol or word (e.g., £, €, peso)

effect_units

units of effectiveness. Default: QALY

n_y_ticks

number of axis ticks

n_x_ticks

number of axis ticks

xbreaks

vector of axis breaks. will override n_x_ticks and/or n_y_ticks if provided.

ybreaks

vector of axis breaks. will override n_x_ticks and/or n_y_ticks if provided.

xlim

vector of axis limits, or NULL, which sets limits automatically

ylim

vector of axis limits, or NULL, which sets limits automatically

col

either none, full color, or black and white

...

further arguments to plot. This is not used by dampack but required for generic consistency.

Value

A ggplot2 plot with the EVSI

See Also

calc_evsi


DARTH-git/dampack documentation built on Aug. 8, 2021, 2:58 a.m.