proc_kmcurve2: A function to create personalized KM curve for 2 or more...

Description Usage Arguments Author(s) See Also Examples

View source: R/proc_kmcurve2.R

Description

Provides KM curve for 2/more groups with CI bands

Usage

1
proc_kmcurve2(s, xlab, ylab)

Arguments

s

survfit object

xlab

x-axis label

ylab

y-axis label

Author(s)

Salil Deo

See Also

survfit

Examples

1
2
3
4
5
6
7
8
## Not run: 
# do not run this
library(survival)
s = survfit(Surv(time, status) ~ sex, data = lung)
figure <- proc_kmcurve2(s = s, xlab = "follow-up", ylab = "proportion surviving")
gets an object figure is a ggplot2 object; it can be further modified if needed.

## End(Not run)

svd09/Smisc documentation built on March 21, 2021, 11:11 p.m.