A fill scale for ggplot2 based on the package palettes

scale_fill_palette(palette = "sunset", discrete = TRUE, reverse = FALSE, ...)

Arguments

palette

Character name of the palette

discrete

Logical. Is the scale discrete or continuous?

reverse

Logical. Should the palette be reversed?

...

Additional arguments passed to discrete_scale() or scale_fill_gradientn()

Value

A ggplot2 scale

Examples

if (FALSE) { # \dontrun{
library(ggplot2)
ggplot(mpg, aes(manufacturer, fill = manufacturer)) +
  geom_bar() +
  scale_fill_palette("qicolors", guide = "none")
} # }