scale_colour_painbow {painbow} | R Documentation |
Use XKCD's "Painbow" colormap
scale_color_painbow(...)
scale_colour_painbow(...)
scale_fill_painbow(...)
... |
Any arguments are passed to |
The colors were extracted directly from the colorscale in XKCD's image (https://xkcd.com/2537/).
Steve Haroz
See ggplot2:scale_fill_gradientn()
for additional arguments.
# You can use it for continuous data
library(ggplot2)
ggplot(faithfuld) +
aes(waiting, eruptions, fill = density) +
geom_tile() +
scale_fill_painbow()