Description Usage Arguments See Also Examples
View source: R/plot.surv.curve.R
Survival curve visualization with additional information.
1 |
gene |
Variable of interest, e.g. a mutated gene. |
survdiff.formula |
An appropriate formula passed to |
coxph.formula |
An appropriate formula for CoxPH regression analysis, alias put the VOI as the last term. |
data |
A data frame to be operated, column names must match those in the formula. |
ci.lab.xycoord |
The x and y coordinates for confidence interval. |
legend.xycoord |
The x and y coordinates for legend. |
pngfig |
A figure suffixed with .png, in which figure will be saved. |
main |
The main title for the figure. |
line.lwd |
Line width of survival curve. |
1 2 3 4 | library(survival)
data("crcdat", package='lxctk')
survdiff.formula = as.formula("Surv(Survival.month, status) ~ hypermutated>0")
plot.surv.curve('hypermutated', survdiff.formula, survdiff.formula, data=crcdat, main="")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.