orange_colors: Extract Orange's colors

Description Usage Arguments See Also Examples

Description

Extract Orange's colors as hexadecimal codes.

Usage

1
2
3
4
orange_colors(col = c("dark grey", "grey", "light grey", "orange",
  "dark blue", "blue", "light blue", "dark green", "green", "light green",
  "dark pink", "pink", "light pink", "dark purple", "purple", "light purple",
  "dark yellow", "yellow", "light yellow"))

Arguments

col

Character names of colors.

See Also

orange_palettes, scale_color_orange, scale_fill_orange

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
orange_colors()
orange_colors("orange")
orange_colors(c("blue", "green"))

# you can use the colors manually in plots
library("ggplot2")

ggplot(mtcars, aes(hp, mpg)) +
  geom_point(color = orange_colors("green"), size = 4, alpha = .8) +
  theme_minimal()

ggplot(mpg, aes(x = cty, y = displ, color = fl)) +
  geom_point(size = 4, alpha = 0.8) +
  scale_color_manual(
    values = unname(
      orange_colors(c("orange", "blue", "yellow", "purple", "green"))
    )
  ) +
  theme_minimal()

thoera/colorange documentation built on May 26, 2019, 5:32 a.m.