Learn R Programming

unhcrthemes (version 0.6.3)

display_unhcr_all: UNHCR color palettes viewer

Description

Displays a set of the color palettes from UNHCR color

Usage

display_unhcr_all(n = NULL, type = "all")

Value

No return value, called for side effects

Arguments

n

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

type

Type of the palette, can be "sequential", "diverging", "qualitative" or "all"

Examples

Run this code
library(unhcrthemes)
display_unhcr_all()
display_unhcr_all(type = "diverging")
display_unhcr_all(type = c("diverging", "qualitative", "sequential"))
display_unhcr_all(n = 3, type = "sequential")
display_unhcr_all(n = 5, type = "sequential")

Run the code above in your browser using DataLab