skislopes: Convenience function for skislope color scheme

Description Usage Arguments Value Author(s) Examples

Description

Convenience function to change the color scheme to four colors: Green, blue, red, and black; i.e. as ski slopes are classified.

Usage

1
skislopes(g, reverse = FALSE)

Arguments

g

ggplot object containing a Kaplan-Meier plot

reverse

should the order of the colors be reversed?

Value

Returns a ggplot object

Author(s)

Daniel Lindholm

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(survival)
library(dplyr)
veteran %>%
    survfit(Surv(time, status) ~ celltype, data = .) %>%
   plot_survfit(cuminc = FALSE) %>%
   skislopes(reverse = TRUE)

## End(Not run)

survsup documentation built on May 7, 2019, 9:02 a.m.