color_palettes: Color palettes provided by 'bggum'.

Description Usage Arguments Palettes provided References Examples

Description

bggum provides color palettes that can be used with its plotting functions. The okabe_ito palette is the eight color, colorblind-friendly palette from Okabe and Ito (2008). The tango palette is comprised of six colors from the Tango palette (Tango Desktop Project 2013).

Usage

1
2
3

Arguments

n

An integer vector of length one; the number of colors to return. If n is greater than the number of colors in the palette, the colors will be recycled so that the result is of length n.

Palettes provided

okabe_ito

c("#e69f00", "#56b4e9", "#009e73", "#f0e442", "#0072b2", "#d55e00", "#cc79a7", "#000000")

tango

c("#cc0000", "#75507b", "#73d216", "#f57900", "#3465a4", "#555753")

References

Okabe, Masataka and Kei Ito. 2008. “Color Universal Design.” https://jfly.uni-koeln.de/color/.

Tango Desktop Project. 2013. “Tango Icon Theme Guidelines.” https://web.archive.org/web/20160202102503/http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines

Examples

1
2
3
4
5
6
## Palettes that are a subset of the total available colors
okabe_ito(3)
tango(3)
## Palettes that need more colors than are available -- leads to recycling
okabe_ito(10)
tango(10)

duckmayr/bggum documentation built on Jan. 20, 2020, 5:23 a.m.