unhcr_pal | R Documentation |
Creates a color palette from UNHCR branding
unhcr_pal(n = NULL, name, ...)
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 |
A character vector, the palette hex color codes.
unhcr_pal(3, "pal_unhcr")
unhcr_pal(3, "pal_blue")
unhcr_pal(5, "pal_navy")
unhcr_pal(12, "pal_red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.