powered by
Convenience function to change the color scheme to four colors: Green, blue, red, and yellow; i.e. like the ski slopes but with yellow instead of black.
cat4(g, reverse = FALSE)
ggplot object containing a Kaplan-Meier plot
should the order of the colors be reversed?
Returns a ggplot object
# NOT RUN { library(survival) library(dplyr) veteran %>% survfit(Surv(time, status) ~ celltype, data = .) %>% plot_survfit(cuminc = FALSE) %>% cat4(reverse = TRUE) # }
Run the code above in your browser using DataLab