unhcr_pal: UNHCR color palettes

View source: R/palettes.R

unhcr_palR Documentation

UNHCR color palettes

Description

Creates a color palette from UNHCR branding

Usage

unhcr_pal(n = NULL, name, ...)

Arguments

n

Number of different colors in the palette, minimum depending on palette (2), maximum depending on palette (5, 7 or 10)

name

A palette name

...

Additional arguments for grDevices::colorRampPalette

Value

A character vector, the palette hex color codes.

Examples

unhcr_pal(3, "pal_unhcr")
unhcr_pal(3, "pal_blue")
unhcr_pal(5, "pal_navy")
unhcr_pal(12, "pal_red")

unhcrthemes documentation built on Nov. 27, 2023, 9:07 a.m.