Description Usage Arguments Value Author(s) Source Examples
Given a survfit
object produced by the survfit
function, ggkm
will produce an attractive Kaplan-Meier plot, with an optional table summarizing the number of individuals at risk along the footer of the plot.
1 2 3 |
sfit |
An object produced by the |
table |
Boolean value; if true, a table with number at risk is appended to the bottom of the plot. Default is |
xlabs |
Character string used to label x-axis. |
ylabs |
Character string used to label y-axis. |
ystrataname |
Character string used to name strata legend; if not supplied, "Strata" is used instead. |
timeby |
Specifies interval used to define breakpoints for at-risk table. |
main |
Character string used to title finished plot; if not specified, default is "Kaplan-Meier Plot". |
pval |
Boolean value; if true, the P-value for the chi-square (log-rank) test of equality performed by |
Produces a plot created with ggplot2
.
Abhijit Dasgupta, Gary Collins, Gil Tomas, Mark Cowley, Dieter Menne
https://statbandit.wordpress.com/2011/03/08/an-enhanced-kaplan-meier-plot/
https://statbandit.wordpress.com/2014/04/01/kaplan-meier-plots-using-ggplots2-updated/
https://github.com/dmenne/dmisc2/tree/master
1 2 3 4 5 6 7 8 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.