nrisk | R Documentation |
Add an axis describing number at risk to a KM curve
nrisk(fit, cex = 0.8)
fit |
A |
cex |
Character expansion parameter for axis labels, as in |
library(survival)
fit <- survfit(Surv(time, status) ~ 1, veteran)
Plot(fit)
nrisk(fit)
fit <- survfit(Surv(time, status) ~ celltype, veteran)
op <- par(mar=c(5,5,6,7))
Plot(fit, legend='right')
nrisk(fit)
par(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.