Learn R Programming

ggthemes (version 5.1.0)

few_pal: Color Palettes Few "Show Me the Numbers"

Description

Qualitative color palettes from Stephen Few (2012) Show Me the Numbers. There are three palettes: Light, Medium, and Dark. Each palette comprises nine colors: gray, blue, orange, green, pink, brown, purple, yellow, red. For n = 1, gray is used. For n > 1, the eight non-gray colors are used.

Usage

few_pal(palette = "Medium")

Arguments

palette

One of names(ggthemes:::rd_optlist(ggthemes::ggthemes_data$few$colors))

Details

Use the light palette for filled areas, such as bar charts. Use the medium palette for points and lines. Use the dark palette for highlighting specific points or for small and thin lines and points.

References

Few, S. (2012) Show Me the Numbers: Designing Tables and Graphs to Enlighten. 2nd edition. Analytics Press.

"Practical Rules for Using Color in Charts".

See Also

Other colour few: scale_colour_few()

Examples

Run this code
library("scales")

show_col(few_pal()(7))
show_col(few_pal("Dark")(7))
show_col(few_pal("Light")(7))

Run the code above in your browser using DataLab