economist_pal: Economist color palette (discrete)

View source: R/economist.R

economist_palR Documentation

Economist color palette (discrete)

Description

The nine colors The Economist uses for chart series: blue, cyan, green, yellow, olive, purple, gold, gray, and red, in that order. Red comes last because the house style reserves it for data the chart is making a point about, rather than handing it out as an ordinary series color.

Usage

economist_pal(fill = deprecated())

Arguments

fill

'r lifecycle::badge("deprecated")' No longer has any effect.

Details

A tenth color, "Econ red", is the brighter masthead red used for the tag rectangle and for single-series highlights. It is excluded from this palette; take it from ggthemes_data$economist$main when you need it.

Value

A palette function. It takes the number of colours n and returns a character vector of n hex colours, and can be used as the palette argument of discrete_scale().

See Also

Other colour economist: economist_seq_pal(), scale_colour_economist(), scale_colour_economist_c()

Examples

library("scales")

show_col(economist_pal()(6))

## the full set of nine series colours
show_col(economist_pal()(9))

ggthemes documentation built on Oct. 4, 2026, 1:06 a.m.