plotKMDetail | R Documentation |
KM plots with details of event counts.
plotKMDetail(
input.data,
surv.formula,
main.text = "",
xlab.text = "",
ylab.text = "",
line.name,
line.color,
line.pattern = NULL,
line.width = NULL,
show.test = "single",
single.test.type = "logrank",
round.digits.p.value = 4,
obs.survyrs,
ten.years.surv.95CI,
event.count,
legend.pos = "bottomleft",
file.name = "no.file",
file.width = 7,
file.height = 7,
grey.scale = FALSE,
show.single.test.pos,
...
)
input.data |
input |
surv.formula |
survival formula to |
main.text |
plot title |
xlab.text |
x-axis label |
ylab.text |
y-axis label |
line.name |
name of legend |
line.color |
line colour of survival curves |
line.pattern |
line pattern of survival curves |
line.width |
line width of survival curves |
show.test |
show single or the reference group value (for pairwise
comparisons). If |
single.test.type |
test to show if specified |
round.digits.p.value |
number of digits for p-value |
obs.survyrs |
show the observed survival years survival rate on KM plot |
ten.years.surv.95CI |
show ten year survival 95% confidence interval |
event.count |
show the number of events at each time point |
legend.pos |
legend position keyword |
file.name |
name of file to save plot to |
file.width |
width of figure in saved file |
file.height |
height of figure in saved file |
grey.scale |
logical. If |
show.single.test.pos |
position to show single test; defaults to 0.5 if
|
... |
additional arguments to |
Samuel Leung
http://courses.nus.edu.sg/course/stacar/internet/st3242/handouts/notes2.pdf
plotKM()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.