survival_custom: Custom survival plots This function is modified after the...

Description Usage Arguments Author(s)

View source: R/custom_survival.R

Description

Custom survival plots This function is modified after the function in '~/src/functions.R', and is partly inspired by the Imvigor210Corebiologies R package (Mariathasan et al., Nature, 2018).

Usage

1
2
3
4
survival_custom(survFit, filename = NULL, title = NULL,
  custom_palette = NULL, custom_legends = NULL, width = 2,
  height = 2.2, xlab = "Overall survival (years)",
  ylab = "Survival probability")

Arguments

survFit

survFit object

filename

character or NULL; define filename when exporting pdf

title

character; plot title

custom_palette

character; custom color palette

custom_legends

character; custom legend labels (take note of warning below)

width

numeric; width of pdf export

height

numeric; height of pdf export

xlab

character; x-axis label

ylab

character; y-axis label

Author(s)

Benjamin Ostendorf


benostendorf/thresholdr documentation built on Nov. 4, 2019, 7:14 a.m.