Skip to contents

Plot the psa object

Usage

# S3 method for class 'psa'
plot(
  x,
  ref_str = NULL,
  center = TRUE,
  ellipse = TRUE,
  alpha = 0.2,
  txtsize = 12,
  col = c("access", "full", "bw"),
  n_x_ticks = 6,
  n_y_ticks = 6,
  xbreaks = NULL,
  ybreaks = NULL,
  xlim = NULL,
  ylim = NULL,
  ref_axis = TRUE,
  ref_caption = TRUE,
  ...
)

Arguments

x

the psa object

ref_str

select a reference strategy. If the user selects a reference strategy, the cost-effectiveness plane becomes an incremental cost-effectiveness plane

center

plot the mean cost and effectiveness for each strategy. defaults to TRUE

ellipse

plot an ellipse around each strategy. defaults to TRUE

alpha

opacity of the scatterplot points. 0 is completely transparent, 1 is completely opaque

txtsize

base text size

col

either none, full color, accessible colors, or black and white

n_x_ticks

number of x-axis ticks

n_y_ticks

number of y-axis ticks

xbreaks

vector of x-axis breaks. will override n_x_ticks if provided.

ybreaks

vector of y-axis breaks. will override n_y_ticks if provided.

xlim

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

ylim

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

ref_axis

Add dotted axes lines at (0,0). Defaults to TRUE

ref_caption

Add the reference strategy as a caption. Defaults to TRUE

...

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

Value

A ggplot2 plot of the PSA, showing the distribution of each PSA sample and strategy on the cost-effectiveness plane.