scale_fill_horror: scale_fill_horror

Description Usage Arguments Examples

View source: R/HorrorPalettes.R

Description

ggplot2 compatible function for selecting the fill scale based on Spring Health palettes

Usage

1
2
scale_fill_horror(palette = "Exorcist_Q", discrete = TRUE,
  reverse = FALSE, ...)

Arguments

palette

Character name of palette in horror_palettes. Options: "Exorcist", "GetOut", "NeonDemon_blue", "NeonDemon_red", "TheShining", "SOTL", "Suspiria", "Excision_Divergent", "GetOut_Divergent", "NeonDemon_Divergent", DawnoftheDead_Q", "Excision_Q", "Exorcist_Q", "Nosferatu_Q", "Suspiria_Q", "TexasChainsaw_Q", "Greyscale".

discrete

Boolean indicating whether color aesthetic is discrete or not

reverse

Boolean indicating whether the palette should be reversed

...

Additional arguments passed to discrete_scale() or scale_fill_gradientn(), used respectively when discrete is TRUE or FALSE

Examples

1
2
3
4
5
library(ggplot2)
ggplot(mpg, aes(manufacturer, fill = manufacturer)) +
geom_bar() +
theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
scale_fill_horror(palette = "TheShining", guide = 'none')

phillynerd/bloodyR documentation built on Nov. 5, 2019, 12:20 a.m.