Description Usage Arguments Value
Survival plot with ggsurvplot A warpper to plot survival plots to further customize the plot,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
survdf |
dataframe with surv.time (character or numeric) and surv.status (numeric of 0,1; or factor with Alive as base level) |
fac |
character of the column name in the survdf to stratify the patients |
surv.time, surv.status |
column name of the survival time and status in the dataframe |
cont.to.dis |
if fac is numeric, how to discretize it. Can be a funciton (Default median) or cutoff points (n-1 points) |
col |
vector of colors |
xlim, break.time.by, pval.method, risk.table, ... |
arguments to |
textsize |
pass to ggplot global text size |
A object of class ggsurvplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.