knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
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:
install.packages("vsd")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("cyanzule/vsd")
library(vsd) vsd(survfit(Surv(time, status) ~ x, data = aml), .include = c("fit", "haz"), conf.int = T)
vsd(coxph(Surv(time, status) ~ age + sex, data = lung), .include = c("forest", "res"))
library(flexsurv) vsd(flexsurvreg(Surv(rectime, censrec) ~ group, data = bc, dist = "weibull"))$param
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.