scale_fill_bit12_spectrum | R Documentation |
Creates a sequential fill gradient using all colors from the Bit12 palette
scale_fill_bit12_spectrum(direction = 1, ...)
direction |
Sets the direction of the color scale (1 = default, -1 = reversed) |
... |
Additional arguments passed to scale_fill_gradientn() |
A sequential ggplot2 fill scale
library(ggplot2)
ggplot(faithfuld, aes(waiting, eruptions, fill = density)) +
geom_tile() +
scale_fill_bit12_spectrum()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.