pcoxtheme | R Documentation |
Sets a theme for pcoxtime and other ggplot objects
pcoxtheme()
No return value, called for side effects (setting pcotime plotting theme).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.