ptol_pal: Color Palettes from Paul Tol's "Colour Schemes"

View source: R/ptol.R

ptol_palR Documentation

Color Palettes from Paul Tol's "Colour Schemes"

Description

[Deprecated]

ptol_pal() was deprecated in ggthemes 7.0.0. Use the khroma package instead, which tracks Paul Tol's colour schemes as he revises them.

This palette is the 12-colour qualitative scheme from Tol's 2012 technical note, and has not followed the revisions he has made since. His current schemes are at https://sronpersonalpages.nl/~pault/; the closest successor to this palette is khroma::colour("muted").

Qualitative color palettes from Paul Tol, "Colour Schemes".

Usage

ptol_pal()

Details

Incorporation of the palette into an R package was originally inspired by Peter Carl's Paul Tol 21 Gun Salute

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

References

Paul Tol. 2012. "Colour Schemes." SRON Technical Note, SRON/EPS/TN/09-002. https://sronpersonalpages.nl/~pault/data/colourschemes.pdf

See Also

Other colour ptol: scale_colour_ptol()

Examples

library("scales")

show_col(ptol_pal()(6))
show_col(ptol_pal()(4))
show_col(ptol_pal()(12))

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