Description Usage Arguments Examples
View source: R/HorrorPalettes.R
ggplot2 compatible function for selecting the fill scale based on Spring Health palettes
1 2 | scale_fill_horror(palette = "Exorcist_Q", discrete = TRUE,
reverse = FALSE, ...)
|
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 |
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.