plot_icers: Plot of ICERs

View source: R/visualization.R

plot_icersR Documentation

Plot of ICERs

Description

plot.icers plots the cost-effectiveness plane for a ICER object, calculated with calculate_icers

Usage

plot_icers(
  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, n_y_ticks

number of axis ticks

xbreaks, ybreaks

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

xlim, ylim

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

xexpand, 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


DARTH-git/darthtools documentation built on April 3, 2025, 2:12 p.m.