scale_color_horror: scale_color_horror

Description Usage Arguments Examples

View source: R/HorrorPalettes.R

Description

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

Usage

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

Arguments

palette

Character name of palette in horror_pals. Default palette is Exorcist_Q. Options include sequential color palettes (PrimaryGreen based on paradiso, SecondaryOrange based on Flamingo, TertiaryYellow, TertiaryGreen, TertiaryStormy, and Greyscale), diverging palettes (Divergent_PF, using paradiso and flamingo; Divergent_YS, using yellow and stormy), and qualitative palettes (Qualitative1 and Qualitative2)

discrete

Boolean indicating whether color aesthetic is discrete or not. Default is TRUE.

reverse

Boolean indicating whether the palette should be reversed. Default is FALSE.

...

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

Examples

1
2
3
4
5
6
7
8
9
library(ggplot2)

ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
 geom_point(size = 4) +
 scale_color_horror(reverse = F, 'Nosferatu_Q')

ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Sepal.Length)) +
  geom_point(size = 4, alpha = .6) +
  scale_color_horror(discrete = F, palette = 'NeonDemon_Divergent')

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