Description Usage Arguments Value
plot the KM curve
1 | km_plot(model, covariate, dataset = veteran, plot_fancy = T)
|
model |
a Surv(time, status) object |
covariate |
it can be 1 if all covariates are included, or it can be a single covariate |
dataset |
it is the dataset we use |
plot_fancy |
if it is TRUE, then it uses ggplot2, otherwise it use the base graphics |
a figure
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.