plot.fitkm: Produces a plot for a set of one or more Kaplan-Meier curves

Description Usage Arguments Value Examples

View source: R/fitkm.R

Description

Produces a plot for a set of one or more Kaplan-Meier curves

Usage

1
2
## S3 method for class 'fitkm'
plot(model, xlab = "Time", ylab = "Survival Probability", legend.cex = 1, ...)

Arguments

model

A fitkm object returned by fitkm.

xlab

String for the x-axis label

ylab

String for the y-axis label

legend.cex

Font size for the legend

...

Further graphical parameters to be passed to plot

Value

An object of class summary.fitkm.

Examples

1
2
plot(fitkm(recovery ~ 1, delta="status", data=data1))
plot(fitkm(remission ~ sample, delta="censor", data=leukemia))

mathmonster/sta545package documentation built on Jan. 1, 2021, 9:20 a.m.