Description Usage Arguments Author(s) See Also Examples
View source: R/base_FastSurvplot.R
Fast way to draw a KM plot of ggplot style
1 2 3 4 5 6 | FastSurvplot(data, time = "OS.time", status = "OS.status",
marker = "pT", color = NULL, size = 16, legend = "top",
legend.title = "T status", title = NULL, pval = TRUE,
pval.position = c(1, 1), conf.int = F, risk.table = F,
linetype = "solid", surv.median.line = "none", ncensor.plot = F,
saveplot = F, name = "GC")
|
data |
a data frame |
time |
the colname of time |
status |
the colname of status |
marker |
the marker you want to explore with KM plot |
color |
If |
size |
the size of plot |
legend |
the position of legend |
legend.title |
the title of legend |
title |
the title of the KM plot |
pval |
whether to output P value in KM plot |
pval.position |
the position of P value in KM plot |
conf.int |
whether to output confidence interval |
risk.table |
whether to output risk table |
linetype |
line type |
surv.median.line |
whether to show median line |
ncensor.plot |
whether to show ncensor plot |
saveplot |
whether to save the KM plot |
name |
part name of saved plot |
Weibin Huang<654751191@qq.com>
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.