wsj_pal: Wall Street Journal color palette (discrete)

View source: R/wsj.R

wsj_palR Documentation

Wall Street Journal color palette (discrete)

Description

The Wall Street Journal uses many different color palettes in its plots. This collects a few of them, but is by no means exhaustive. Collections of these plots can be found on the WSJ Graphics X (formerly Twitter) feed and Pinterest.

Usage

wsj_pal(palette = "colors6")

Arguments

palette

character The color palette to use: . \Sexpr[results=rd]{ggthemes:::rd_optlist(names(ggthemes::ggthemes_data$wsj$palettes))}

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().

Palettes

The following palettes are defined,

rgby

Red/Green/Blue/Yellow theme.

red_green

Green/red two-color scale for good/bad.

green_black

Black-green 4-color scale for 'Very negative', 'Somewhat negative', 'somewhat positive', 'very positive'.

dem_rep

Democrat/Republican/Undecided blue/red/gray scale.

colors6

Red, blue, gold, green, orange, and black palette.

See Also

Other colour wsj: scale_colour_wsj()

Examples

wsj_pal()(6)

scales::show_col(wsj_pal("rgby")(4))

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