Continuous colour fill scales for Analysis Function plots
Source:R/scale_fill_continuous_af.R
scale_fill_continuous_af.Rd
Continuous colour fill scales for Analysis Function plots
Usage
scale_fill_continuous_af(
palette = "sequential",
palette_type = c("af"),
reverse = FALSE,
na_colour = "grey50",
guide = "colourbar",
...
)
Arguments
- palette
Name of palette to use; e.g. "main", "sequential", "focus." Default value is "sequential".
- palette_type
Currently only the Analysis Function palettes are supported. Defaults to "af".
- reverse
Boolean value to indicate whether the palette should be reversed.
- na_colour
Colour to set for missing values.
- guide
A name or function used to create guide. Default is "colourbar".
- ...
Additional arguments passed to scale type.
Examples
library(ggplot2)
ggplot(faithfuld, aes(x = waiting, y = eruptions, fill = density)) +
geom_raster() +
scale_fill_continuous_af()