Last active
October 30, 2017 11:19
-
-
Save MarcinKosinski/c6a8cec232d88243fda42312236cd35a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ggsurv <- ggsurvplot( | |
fit, # survfit object with calculated statistics. | |
data = BRCAOV.survInfo, # data used to fit survival curves. | |
risk.table = TRUE, # show risk table. | |
pval = TRUE, # show p-value of log-rank test. | |
conf.int = TRUE, # show confidence intervals | |
xlim = c(0,2000), # present narrower X axis, but not affect | |
# survival estimates. | |
xlab = "Time in days", # customize X axis label. | |
break.time.by = 500, # break X axis in time intervals by 500. | |
ggtheme = theme_light(), # customize plot and risk table with a theme. | |
risk.table.y.text.col = T,# colour risk table text annotations. | |
risk.table.height = 0.25, # the height of the risk table | |
risk.table.y.text = FALSE,# show bars instead of names in text annotations | |
# in legend of risk table. | |
ncensor.plot = TRUE, # plot the number of censored subjects at time t | |
ncensor.plot.height = 0.25, | |
conf.int.style = "step", # customize style of confidence intervals | |
surv.median.line = "hv", # add the median survival pointer. | |
legend.labs = c("BRCA", "OV")) # change legend labels. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment