plot_ice: Plotting the incremental cost-effectiveness plane.

View source: R/fct_costeffectiveness.R

plot_iceR Documentation

Plotting the incremental cost-effectiveness plane.

Description

This function plots the incremental cost-effectiveness plane for two strategies.

Usage

plot_ice(
  df,
  e_int,
  e_comp,
  c_int,
  c_comp,
  col = NULL,
  n_it = NULL,
  wtp = NULL,
  currency = "euro"
)

Arguments

df

a dataframe.

e_int

character. Name of variable of the dataframe containing total effects of the intervention strategy.

e_comp

character. Name of variable of the dataframe containing total effects of the comparator strategy.

c_int

character. Name of variable of the dataframe containing total costs of the intervention strategy.

c_comp

character. Name of variable of the dataframe containing total costs of the comparator strategy.

col

character. Name of variable of the dataframe to use to colour (in blue) the plotted dots. Default is NULL which results in grey dots.

n_it

(vector of) numeric value(s). Designate which iteration should be coloured in the colour red.

wtp

numeric. Default is NULL. If different than NULL, plots a linear line with intercept 0 and the defined slope.

currency

character. Default is "euro". Determines the currency sign to use in the incremental cost effectiveness plane. Currently included signs: "euro", "dollar", "yen", "none".

Value

A ggplot2 graph.

Examples

# Generating plot using the example dataframe, and a willlingness-to-pay threshold of 80,0000 euros.
data(df_pa)
plot_ice(df = df_pa,
         e_int = "t_qaly_d_int",
         e_comp = "t_qaly_d_comp",
         c_int = "t_costs_d_int",
         c_comp = "t_costs_d_comp",
         wtp = 8000)

Xa4P/pacheck documentation built on April 14, 2025, 1:51 p.m.