scale_economist_seq: Economist sequential color scales

scale_colour_economist_cR Documentation

Economist sequential color scales

Description

Color scales built from The Economist's equal-lightness color scales. The _c scales are continuous; the _ordinal scales are discrete, for ordered factors. See scale_colour_economist() for the unordered categorical scales.

Usage

scale_colour_economist_c(hue = "blue", guide = "colourbar", ...)

scale_color_economist_c(hue = "blue", guide = "colourbar", ...)

scale_fill_economist_c(hue = "blue", guide = "colourbar", ...)

scale_colour_economist_ordinal(hue = "blue", ...)

scale_color_economist_ordinal(hue = "blue", ...)

scale_fill_economist_ordinal(hue = "blue", ...)

Arguments

hue

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

guide

Type of legend. Use "colourbar" for continuous color bars, or "legend" for discrete color legends.

...

Other arguments passed on to the underlying scale.

Value

A ggplot2 scale object.

See Also

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

Examples

library("ggplot2")

# Continuous scale
ggplot(mtcars, aes(x = wt, y = mpg, colour = disp)) +
  geom_point(size = 3) +
  scale_colour_economist_c(hue = "blue")

# Ordinal (discrete) scale for an ordered factor
ggplot(mtcars, aes(x = wt, y = mpg, colour = factor(cyl, ordered = TRUE))) +
  geom_point(size = 3) +
  scale_colour_economist_ordinal(hue = "red")

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