plotKM | R Documentation |
KM plots with basic annotations.
plotKM(
input.d,
input.formula,
main.text = "",
xlab.text = "",
ylab.text = "",
line.name,
line.color,
line.pattern = NULL,
line.width = NULL,
show.test = "single",
single.test.type = "logrank",
digits = 3,
obs.survyrs = 3,
legend.pos = "bottomleft",
file.name = "no.file",
file.width = 7,
file.height = 7,
grey.scale = FALSE,
show.single.test.pos = 0.1,
xlabs = NULL,
legend.xy = NULL,
ylabs = NULL,
timeby = NULL,
...
)
input.d |
input |
input.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 |
digits |
number of digits for p-value |
obs.survyrs |
show the observed survival years survival rate on KM plot |
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
|
xlabs |
dummy param to match ggkm so they don't get passed to ... |
legend.xy |
dummy param to match ggkm so they don't get passed to ... |
ylabs |
dummy param to match ggkm so they don't get passed to ... |
timeby |
dummy param to match ggkm so they don't get passed to ... |
... |
additional arguments to |
Samuel Leung
plotKMDetail()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.