plot.exp_loss {dampack}R Documentation

Plot of Expected Loss Curves (ELC)

Description

Plot of Expected Loss Curves (ELC)

Usage

## S3 method for class 'exp_loss'
plot(
  x,
  log_y = TRUE,
  frontier = TRUE,
  points = TRUE,
  lsize = 1,
  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 exp_loss, produced by function calc_exp_loss

log_y

take the base 10 log of the y axis

frontier

indicate the frontier (also the expected value of perfect information). To only plot the EVPI see calc_evpi.

points

whether to plot points on the curve (TRUE) or not (FALSE)

lsize

line size. defaults to 1.

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 object with the expected loss


[Package dampack version 1.0.1 Index]