plot_survival | R Documentation |
From a survfit
, plot stratified Kaplan-Meier plot.
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)
survfit_object |
Input |
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) |
ggplot2
-based Kaplan-Meier plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.