Use XKCD's "Painbow" Colormap in ggplot2

XKCD described a supposedly "bad" colormap that it called a "Painbow" (see <>). But simple tests demonstrate that under some circumstances, the colormap can perform very well, and people can find information that is difficult to detect with the ggplot2 default and even supposedly "good" colormaps like viridis. This library let's you use the Painbow in your own ggplot graphs.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.0.1 by Steve Haroz, 24 days ago

Report a bug at

Browse source code at

Authors: Steve Haroz

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports ggplot2

Suggests knitr, patchwork, spelling, rmarkdown

See at CRAN