Creates a color palette from UNHCR branding
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
Examples
unhcr_pal(3, "pal_unhcr")
#> [1] "#18375F" "#0072BC" "#8EBEFF"
unhcr_pal(3, "pal_blue")
#> [1] "#8EBEFF" "#589BE5" "#0072BC"
unhcr_pal(5, "pal_navy")
#> [1] "#E0E9FE" "#B8C9EE" "#8395B9" "#506489" "#18375F"
unhcr_pal(12, "pal_red")
#> [1] "#FFE7E8" "#FFD7D9" "#FFC7CB" "#FFB6BC" "#FFA2AA" "#FF8E98" "#FC7987"
#> [8] "#F66475" "#F04F64" "#DE3D54" "#C92C45" "#B41C37"