powered by
Creates a color palette from UNHCR branding
unhcr_pal(n = NULL, name, ...)
A character vector, the palette hex color codes.
Number of different colors in the palette, minimum depending on palette (2), maximum depending on palette (5, 7 or 10)
A palette name
Additional arguments for grDevices::colorRampPalette
unhcr_pal(3, "pal_unhcr") unhcr_pal(3, "pal_blue") unhcr_pal(5, "pal_navy") unhcr_pal(12, "pal_red")
Run the code above in your browser using DataLab