plot.psa: Plot the psa object

Description Usage Arguments Value

View source: R/psa.R

Description

Plot the psa object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## S3 method for class 'psa'
plot(
  x,
  center = TRUE,
  ellipse = TRUE,
  alpha = 0.2,
  txtsize = 12,
  col = c("full", "bw"),
  n_x_ticks = 6,
  n_y_ticks = 6,
  xbreaks = NULL,
  ybreaks = NULL,
  xlim = NULL,
  ylim = NULL,
  ...
)

Arguments

x

the psa object

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, or black and white

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

...

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.


dampack documentation built on May 31, 2021, 1:06 a.m.