Description Usage Arguments Author(s) See Also Examples
View source: R/proc_km_label.R
Label survival values for KM curve
1 | proc_km_label(s, xlab, ylab, color, times)
|
s |
survfit object |
xlab |
x-axis label |
ylab |
y-axis label |
color |
string providing color label |
times |
time for labelling survival values provide as list |
Salil Deo
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# do not run this
# needs my_theme already in .env
library(survival)
s = survfit(Surv(time, status) ~ 1, data = lung)
figure <- proc_kmcurve2(s = s, xlab = "follow-up",
ylab = "proportion surviving",
color = "blue", times = c(300,500))
gets an object figure is a ggplot2 object; it can be further modified if needed.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.