| scale_color_pequod_c | R Documentation |
Interpolates across a Pequod palette with [ggplot2::scale_color_gradientn()]. Best used with the '"log"' or '"log-cool"' palettes, which are ordered from light to dark; the '"crew"' palettes are categorical and will not interpolate cleanly.
scale_color_pequod_c(palette = "log", reverse = FALSE, ...)
scale_colour_pequod_c(palette = "log", reverse = FALSE, ...)
scale_fill_pequod_c(palette = "log", reverse = FALSE, ...)
palette |
Palette name. See [palette_pequod()]. |
reverse |
Reverse the palette order. |
... |
Further arguments passed to [ggplot2::scale_color_gradientn()] / [ggplot2::scale_fill_gradientn()]. |
A ggplot2 scale.
library(ggplot2)
ggplot(faithfuld, aes(waiting, eruptions, fill = density)) +
geom_tile() +
scale_fill_pequod_c(palette = "log-cool")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.