unhcr_pal {unhcrthemes} | R 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")
[Package unhcrthemes version 0.6.2 Index]