View source: R/glmnetsurvtheme.R
gsurvtheme | R Documentation |
Sets a theme for glmnetsurv and other ggplot objects
gsurvtheme()
library(ggplot2) gsurvtheme() data(veteran, package="survival") lam <- 0.02 alp <- 1 gfit <- glmnetsurv(Surv(time, status) ~ factor(trt) + karno + diagtime + age + prior , data = veteran , lambda = 0 , alpha = 1 ) # Plot survival curves gsurv <- glmnetsurvfit(gfit) plot(gsurv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.