Description Usage Arguments Value Examples
This function plots Kaplan-Meier Curve for survival analysis.
1 2 3 4 5 |
clinical |
a survival object created by Surv function in survival package |
labels |
a vector containing subtyping labels of patients |
limit |
a numeric indicating the time limit of this KM plot |
annot |
a character indicating the annotation showed up in the plot |
color |
a vector containing colors used for different subtypes |
font |
a character indicating the font used in the plot (default: "Arial") |
xlab |
a character indicating the label of x-axis (default: "Follow up") |
ylab |
a character indicating the label of y-axis (default: "Survival Probability") |
title |
a character indicating the title (default: NULL) |
palette |
color paletter (default: "jama_classic") |
risk.table |
a logical indicating whether show risk table or not (default: TRUE) |
risk.table.ratio |
a numeric indicating the relative size of risk table (default: 0.4) |
anno.pos |
position of annotation (default: "bottom") |
anno.x.shift |
relative position of annotation in x-axis (default: 0.5) |
lenged.pos |
a character indicating whether the legend is (default: "top") |
a ggplot2 object of the plot
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.