Skip to contents

The Economist's "equal lightness colour scales": six ordered steps for each of the nine hues in the main chart palette, running darkest to lightest. Use them for ordered data, where the main palette is for unordered categories.

Usage

economist_seq_pal(hue = "blue")

economist_gradient_pal(hue = "blue")

Arguments

hue

character. One of "blue", "cyan", "green", "yellow", "olive", "purple", "gold", "gray", or "red".

Details

economist_seq_pal() returns the six steps themselves, for discrete ordered data. economist_gradient_pal() interpolates between them, for continuous data.

Examples

library("scales")

# the six steps of one hue, darkest first
show_col(economist_seq_pal("blue")(6))

show_col(economist_seq_pal("red")(6))


# interpolated for continuous data
show_col(economist_gradient_pal("green")(seq(0, 1, length.out = 10)))