scale_fill_bit12_distiller | R Documentation |
Creates a sequential fill gradient based on a selected Bit12 color
scale_fill_bit12_distiller(palette = "azure", direction = 1, ...)
palette |
Name of the color palette to use ("plum", "rose", "coral", "apricot", "lemon", "lime", "mint", "teal", "sky", "azure", "cobalt", "violet") |
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_distiller(palette = "azure")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.