plot.icers {dampack}R Documentation

Plot of ICERs

Description

Plots the cost-effectiveness plane for a ICER object, calculated with calculate_icers

Usage

## S3 method for class 'icers'
plot(
  x,
  txtsize = 12,
  currency = "$",
  effect_units = "QALYs",
  label = c("frontier", "all", "none"),
  label_max_char = NULL,
  plot_frontier_only = FALSE,
  alpha = 1,
  n_x_ticks = 6,
  n_y_ticks = 6,
  xbreaks = NULL,
  ybreaks = NULL,
  xlim = NULL,
  ylim = NULL,
  xexpand = expansion(0.1),
  yexpand = expansion(0.1),
  max.iter = 20000,
  ...
)

Arguments

x

Object of class icers.

txtsize

base text size

currency

string. with currency used in the cost-effectiveness analysis (CEA).

effect_units

string. unit of effectiveness

label

whether to label strategies on the efficient frontier, all strategies, or none. defaults to frontier.

label_max_char

max number of characters to label the strategies - if not NULL (the default) longer strategies are truncated to save space.

plot_frontier_only

only plot the efficient frontier

alpha

opacity of points

n_x_ticks

number of axis ticks

n_y_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

xexpand

Padding around data. See scale_continuous for details. The default behavior in ggplot2 is expansion(0.05). See expansion for how to modify this.

yexpand

Padding around data. See scale_continuous for details. The default behavior in ggplot2 is expansion(0.05). See expansion for how to modify this.

max.iter

Maximum number of iterations to try to resolve overlaps. Defaults to 10000.

...

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

Value

a ggplot2 object which can be modified by adding additional geoms


[Package dampack version 1.0.1 Index]