survival_plot: survival_plot

Description Usage Arguments Value

View source: R/survival_plot.R

Description

Survival plotting function for survnma objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
survival_plot(
  data = NULL,
  study = NULL,
  treatments = NULL,
  timesteps = seq(0, 30),
  study_labs = NA,
  colors = NULL,
  xlab = NULL,
  ylab = "",
  xlim = NULL,
  ylim = NULL,
  title = "",
  interval = TRUE
)

Arguments

data

One of the two:

  • a data-frame object (e.g. from prep_all_survivals function) containing columns of c("curve","time", "mean", "lci", "uci", "label")

  • survnma object; this will lead to "behind-the-scenes" survival curve calculations; in that case you should/can also define study, treatments, timesteps (see prep_all_survivals)

study

a specified study to be used for carrying the analysis

treatments

a selection of treatments to be compared; can be the whole set of available treatments

timesteps

Vector of evaluation times. Should be of length > 2

study_labs

labels for each study

colors

vector containing color codes to be used for curves

xlab

labels for x-axis

ylab

labels for y-axis

xlim

a limit for the x-axis

ylim

a limit for the y-axis

title

label for title

interval

boolean for producing credible interval or not

Value

returns a graph of survival curves


certara/survivalnma documentation built on Oct. 17, 2020, 12:34 a.m.