Description Usage Arguments Value

This function plots a Kaplan-Meier plot.

1 2 3 4 5 |

`time` |
survival time variable |

`status` |
survival indicator variable |

`strata` |
Stratifying variable (optional) |

`time.unit` |
Time unit of x axis |

`time.by` |
Time step x axis (in days) |

`main` |
Graph main title |

`ylab` |
Y-axis label. |

`xlab` |
X-axis label. If NULL a suitable default based on time.unit will be provided |

`xlim` |
X-axis limit. If NULL a suitable default based on time.unit will be provided |

`conf.int` |
logical ... Plot confidence intervall? If NULL confidence interval are plotted only if strata has two or more levels |

`test` |
tests: 'no'=don't plot tests, 'logr'=logranktest, 'hr'=hazratio, 'both'=both |

`plot.n.at.risk` |
Logical value: plot number at risk? |

`gr.legend` |
Graph command to add legend, as string |

`...` |
Further lines.survfit params |

The function plot the graph and return a list with km statistics

yapomif documentation built on May 31, 2017, 2:23 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.