Description Usage Format Examples
A collection of colour palettes used by UN OCHA Visual Unit. The list of available palettes is: blue gray tan red
1 |
An object of class list
of length 9.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.