| ptol_pal | R Documentation |
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".
ptol_pal()
Incorporation of the palette into an R package was originally inspired by Peter Carl's Paul Tol 21 Gun Salute
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().
Paul Tol. 2012. "Colour Schemes." SRON Technical Note, SRON/EPS/TN/09-002. https://sronpersonalpages.nl/~pault/data/colourschemes.pdf
Other colour ptol:
scale_colour_ptol()
library("scales")
show_col(ptol_pal()(6))
show_col(ptol_pal()(4))
show_col(ptol_pal()(12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.