iheid_palette: An IHEID palette generator

View source: R/palettes.R

iheid_paletteR Documentation

An IHEID palette generator

Description

These are a few color palettes useful for members of the Geneva Graduate Institute. This function calls one of three official palettes in iheid_palette: for the Institute, for the Centres, and for the SDGs.

Usage

iheid_palette(name, n, type = c("discrete", "continuous"))

Arguments

name

Name of desired palette. Current choices are: IHEID, Centres, and SDGs.

n

Number of colors desired. If omitted, uses all colours.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours.

Value

A vector of colours.

Source

Adapted from https://github.com/karthik/wesanderson/blob/master/R/colors.R

Examples

iheid_palette("IHEID")
iheid_palette("Centres")
iheid_palette("SDGs")

# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- iheid_palette(21, name = "Centres", type = "continuous")
image(volcano, col = pal)

iheiddown documentation built on Sept. 27, 2022, 9:05 a.m.