vsd
is a shim package that allows for appealing and relevant graphical output for Survival Analysis data sets.
You can install the released version of vsd from CRAN with:
And the development version from GitHub with:
library(vsd)
#> Loading required package: survival
#> Loading required package: ggplot2
vsd(survfit(Surv(time, status) ~ x, data = aml), .include = c("fit", "haz"), conf.int = T)
#> $fit
#>
#> $hazard
#>
#> $residuals