painbow: Painbow colormap

Description Usage Arguments Details Author(s) See Also Examples

Description

Use XKCD's "Painbow" colormap

Usage

1
2
3

Arguments

...

Any arguments are passed to ggplot2:scale_fill_gradientn()

Details

The colors were extracted directly from the colorscale in XKCD's image (https://xkcd.com/2537/).

Author(s)

Steve Haroz

See Also

See ggplot2:scale_fill_gradientn() for additional arguments.

Examples

1
2
3
4
5
6
# You can use it for continuous data
library(ggplot2)
ggplot(faithfuld) +
  aes(waiting, eruptions, fill = density) +
  geom_tile() +
  scale_fill_painbow()

painbow documentation built on Nov. 12, 2021, 1:07 a.m.