powered by
ggplot2 scales for each season of Survivor.
ggplot2
survivor_pal(season = NULL, scale_type = "d", reverse = FALSE, ...)scale_fill_survivor(season = NULL, scale_type = "d", reverse = FALSE, ...)scale_colour_survivor(season = NULL, scale_type = "d", reverse = FALSE, ...)
scale_fill_survivor(season = NULL, scale_type = "d", reverse = FALSE, ...)
scale_colour_survivor(season = NULL, scale_type = "d", reverse = FALSE, ...)
Scale functions for ggplot2
Season number
Discrete or continuous. Input d or c.
d
c
Logical. Reverse the palette?
Other arguments passed on to methods.
Palettes are created from the logo for the season.
library(ggplot2) library(dplyr) mpg %>% ggplot(aes(x = displ, fill = manufacturer)) + geom_histogram(colour = "black") + scale_fill_survivor(40)
Run the code above in your browser using DataLab