ocha_palettes: UN OCHA Visual Unit Color Palettes

Description Usage Format Examples

Description

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

Usage

1

Format

An object of class list of length 9.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Make an x-y plot using the Namatjira palette
library(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) 

# Make a histogram using the McCrea Collins Street palette
ggplot(df, aes(x, fill=cl)) + geom_histogram() +
  scale_fill_ocha(palette = "tan")

mmusori/ochathemes documentation built on May 29, 2019, 8:36 a.m.