powered by
Continuous colour fill scales for Analysis Function plots
scale_fill_continuous_af( palette = "sequential", palette_type = c("af"), reverse = FALSE, na_colour = "grey50", guide = "colourbar", ... )
ggplot2 continuous fill scale
Name of palette to use; e.g. "main", "sequential", "focus." Default value is "sequential".
Currently only the Analysis Function palettes are supported. Defaults to "af".
Boolean value to indicate whether the palette should be reversed.
Colour to set for missing values.
A name or function used to create guide. Default is "colourbar".
Additional arguments passed to scale type.
library(ggplot2) ggplot(faithfuld, aes(x = waiting, y = eruptions, fill = density)) + geom_raster() + scale_fill_continuous_af()
Run the code above in your browser using DataLab