scale_colour_painbow {painbow}R Documentation

Painbow colormap

Description

Use XKCD's "Painbow" colormap

Usage

scale_color_painbow(...)
scale_colour_painbow(...)
scale_fill_painbow(...)

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

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

[Package painbow version 1.0.1 Index]