pcoxtheme: Set theme for pcoxtime plots

View source: R/pcoxtheme.R

pcoxthemeR Documentation

Set theme for pcoxtime plots

Description

Sets a theme for pcoxtime and other ggplot objects

Usage

pcoxtheme()

Value

No return value, called for side effects (setting pcotime plotting theme).

Examples

library(ggplot2)
pcoxtheme()
data(heart, package="survival")
lam <- 0.02
alp <- 1
pfit <- pcoxtime(Surv(start, stop, event) ~ age + year + surgery + transplant
	, data = heart
	, lambda = lam
	, alpha = alp
)

# Plot survival curves
psurv <- pcoxsurvfit(pfit)
plot(psurv)

CYGUBICKO/pcoxtime-pkg documentation built on Aug. 5, 2023, 1:35 p.m.