A collection of colour palettes used by UN OCHA Visual Unit. The list of available palettes is: blue gray tan red

ocha_palettes

Format

An object of class list of length 9.

Examples

# Make an x-y plot using the Namatjira palette library(tidyverse)
#> Error in library(tidyverse): there is no package called ‘tidyverse’
df <- data.frame(x = rnorm(100, 0, 20), y = rnorm(100, 0, 20), cl = sample(letters[1:8], 100, replace=TRUE)) ggplot(df, aes(x, y, colour=cl, shape=cl)) + geom_point(size=4) + scale_colour_ocha() + theme_bw() + theme(aspect.ratio=1)
#> Error in ggplot(df, aes(x, y, colour = cl, shape = cl)): could not find function "ggplot"
# Make a histogram using the McCrea Collins Street palette ggplot(df, aes(x, fill=cl)) + geom_histogram() + scale_fill_ocha(palette = "tan")
#> Error in ggplot(df, aes(x, fill = cl)): could not find function "ggplot"