Learn R Programming

pcoxtime (version 1.0.4)

pcoxtheme: Set theme for pcoxtime plots

Description

Sets a theme for pcoxtime and other ggplot objects

Usage

pcoxtheme()

Arguments

Value

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

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab