coloring: Color scale in the ICAE color scheme.

coloringR Documentation

Color scale in the ICAE color scheme.

Description

Creates a color scale in accordance with the official ICAE color scheme.

Creates a color scale in accordance with the official EUF color scheme.

Usage

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, ...)

Arguments

palette

The type of palette to be returned. Currently, the follwoing palettes are supported: main, cool, hot, and mixed.

discrete

If TRUE returnes a discrete scheme.

reverse

If TRUE reverses the resulting color scheme.

Details

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"

See Also

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()

Examples

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")


graebnerc/icaeDesign documentation built on Feb. 29, 2024, 5:02 p.m.