inst/examples/ex-economist_seq_pal.R

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

Try the ggthemes package in your browser

Any scripts or data that you put into this service are public.

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