plot_psa: Plot the psa object

View source: R/visualization.R

plot_psaR Documentation

Plot the psa object

Description

Plot the psa object

Usage

plot_psa(
  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, 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

...

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.


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