| economist_pal | R Documentation |
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.
economist_pal(fill = deprecated())
fill |
'r lifecycle::badge("deprecated")' No longer has any effect. |
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.
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().
Other colour economist:
economist_seq_pal(),
scale_colour_economist(),
scale_colour_economist_c()
library("scales")
show_col(economist_pal()(6))
## the full set of nine series colours
show_col(economist_pal()(9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.