coloring | R Documentation |
Creates a color scale in accordance with the official ICAE color scheme.
Creates a color scale in accordance with the official EUF color scheme.
scale_color_icae(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_fill_icae(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_color_euf(palette = "main", discrete = TRUE, reverse = FALSE, ...)
scale_fill_euf(palette = "main", discrete = TRUE, reverse = FALSE, ...)
palette |
The type of palette to be returned. Currently, the follwoing
palettes are supported: |
discrete |
If TRUE returnes a discrete scheme. |
reverse |
If TRUE reverses the resulting color scheme. |
These functions can be used to transform the color scheme of a ggplot
so that it is in accordance with the official ICAE color scheme.
The function provides functionality for continuous and discrete color
schemes but has still problems in handling plots with too many different
colors. For the colour
aesthetic use scale_color_icae
, for
the fill
aesthetic use scale_fill_icae
.
The palettes currently available are the following:
main
: "sand", "purple", "dark red"
cool
: "purple", "dark green", "dark blue"
hot
: "sand", "dark red"
mixed
: "orange", "dark blue", "purple", "sand", "dark red"
grey
: "light grey", "dark grey"
These functions can be used to transform the color scheme of a ggplot
so that it is in accordance with the official EUF color scheme.
The function provides functionality for continuous and discrete color
schemes but has still problems in handling plots with too many different
colors. For the colour
aesthetic use scale_color_euf
, for
the fill
aesthetic use scale_fill_euf
.
The palettes currently available are the following:
main
: "grey", "blue"
cool
: "green", "lightblue", "blue"
hot
: "grey", "red"
mixed
: "blue", "red", "green", "lightblue", "grey"
grey
: "light grey", "dark grey"
The package was loosely built upon the explanations in https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2.
The package was loosely built upon the explanations in https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2.
Other color scheme functions:
get_euf_colors()
,
get_icae_colors()
Other color scheme functions:
get_euf_colors()
,
get_icae_colors()
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
geom_point(size = 4) +
scale_color_icae("hot")
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Sepal.Length)) +
geom_point(size = 4, alpha = .6) +
scale_color_icae(discrete = FALSE, palette = "cool")
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
geom_point(size = 4) +
scale_color_euf("hot")
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Sepal.Length)) +
geom_point(size = 4, alpha = .6) +
scale_color_euf(discrete = FALSE, palette = "cool")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.