plot_survival: Plot Kaplan-Meier plot

plot_survivalR Documentation

Plot Kaplan-Meier plot

Description

From a survfit, plot stratified Kaplan-Meier plot.

Usage

parse_survfit(survfit_object)

plot_survfit(survfit_object, colors = NULL, legend_title = NULL,
  plot_title = NULL, xmax = NULL, parse_strata = FALSE,
  x_lab = NULL, y_lab = NULL, legend_pos = NULL, pval = TRUE,
  pval_pos = NULL, interval = NULL, env_theme = TRUE,
  table = FALSE)

Arguments

survfit_object

Input survfit object

colors

Colors for strata

legend_title

Title of plot legend

plot_title

Title of plot

xmax

Limit for x axis

parse_strata

Convert 0/1 notation to wildtype/mutated

x_lab

Label x axis

y_lab

Label y axis

legend_pos

Figure legend position

pval

Show p-value of model

pval_pos

P-value position

interval

Tick interval on x axis

env_theme

Theme, if not current

table

Show at-risk table beneath plot (experimental)

Value

ggplot2-based Kaplan-Meier plot


kpjonsson/kpjmisc documentation built on Jan. 14, 2024, 2:38 a.m.