ggkm: A function for Kaplan-Meier plots with ggplot2

Description Usage Arguments Examples

View source: R/plotting.R

Description

Found at https://github.com/michaelway/ggkm

Usage

1
2
3
4
5
ggkm(sfit, table = TRUE, returns = FALSE, xlabs = "Time",
  ylabs = "Survival Probability", xlims = c(0, max(sfit$time)),
  ylims = c(0, 1), ystratalabs = NULL, ystrataname = NULL,
  timeby = 100, main = "Kaplan-Meier Plot", pval = TRUE,
  subs = NULL, linetypes = NULL, ...)

Arguments

sfit

A survfit object from Survival package

Examples

1
ggkm(survfit(Surv(RFSMonths, RFSStatus) ~ riskGroup), timeby = 12)

jacobfredsoee/LCEF documentation built on Feb. 7, 2021, 8:10 p.m.