Description Usage Arguments See Also Examples
Extract Orange's colors as hexadecimal codes.
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"))
|
col |
Character names of colors. |
orange_palettes
, scale_color_orange
,
scale_fill_orange
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.