11.10 Survminer package
Survminer is a package that draws survival curves using ggplot, and can provide logrank p-values all in one go!
Using survminer package
library(survminer)
ggsurvplot(fit.sex, data = BrainCancer, 
           pval = TRUE,
           conf.int = TRUE, 
           risk.table = TRUE, 
           legend.title = "Sex", 
           legend.labs = c("Female", "Male"))