Skip to contents

These functions apply a similar approach used and demonstrated by ColorBrewer and has been patterned after the syntax of the RColorBrewer package

Usage

create_palette_sequential(n, name)

create_palette_divergent(n, name)

create_palette_qualitative(n, name)

create_brewer_palette(n, name, type = c("sequential", "divergent"))

Arguments

n

Number of colours desired/required. Oxford palettes have at least 5 colours. All colour schemes are derived from the University of Oxford visual identity guidelines.

name

Name of Oxford palette to use

type

A character value for type of palette to use. Can be either sequential, divergent, or qualitative.

Value

A character vector of desired/required colours with length equivalent to n

Examples

create_palette_sequential(5, "blues")

create_palette_divergent(10, "brbg")

create_palette_qualitative(5, "dark")

create_brewer_palette(5, "blues")