mpg | R Documentation |
mpg
provides the default color palette
of the Max Planck Society, Germany.
mpg
An object of class character
of length 5.
The two primary colors are at the extreme positions of mpg
:
MPG green
(at mpg[1]
): Defined as Pantone 328
, CMYK 100/0/57/30
, or RGB 17/102/86
.
MPG grey
(at mpg[5]
): Defined as Pantone 427
, CMYK 0/0/6/15
, or RGB 221/222/214
.
At mpg[3]
, the color "white"
was added to enable symmetrical color gradients.
See examples and the ac
and usecol
functions
for creating color gradients.
A named vector of colors (HEX/HTML codes of type character).
unicol, 2022-12-11.
Color definitions are based on https://docplayer.org/2328711-Max-planck-institut-das-erscheinungsbild-der-max-planck-gesellschaft-4-ueberarbeitete-auflage.html.
seecol
for viewing and comparing color palettes;
usecol
for using color palettes;
simcol
for finding similar colors;
newpal
for defining new color palettes;
grepal
for finding named colors.
mpg
unikn::seecol(mpg, main = "Colors of the Max Planck Society") # view color palette
unikn::demopal(mpg, type = 1, main = "Using the MPG colors")
# Extended version:
mpg_11 <- unikn::usecol(c(mpg, "black"), n = 11)
unikn::demopal(mpg_11, type = 4, seed = 1, main = "An extended MPG palette")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.