gsurvtheme: Set theme for glmnetsurv plots

View source: R/glmnetsurvtheme.R

gsurvthemeR Documentation

Set theme for glmnetsurv plots

Description

Sets a theme for glmnetsurv and other ggplot objects

Usage

gsurvtheme()

Examples

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)

CYGUBICKO/glmnetpostsurv documentation built on Sept. 1, 2022, 7:26 p.m.