% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colors.R \name{scale_fill_civilytics} \alias{scale_fill_civilytics} \title{Civilytics fill scale for ggplot2} \usage{ scale_fill_civilytics(palette = "qual", discrete = TRUE, reverse = FALSE, ...) } \arguments{ \item{palette}{Character. Palette name. Defaults to `"qual"`.} \item{discrete}{Logical. `TRUE` (default) for categorical data; `FALSE` for a continuous gradient via [ggplot2::scale_fill_gradientn()].} \item{reverse}{Logical. Reverse the palette order. Default `FALSE`.} \item{...}{Additional arguments passed to the ggplot2 scale function.} } \value{ A ggplot2 scale object. } \description{ Applies a Civilytics brand palette to the `fill` aesthetic. } \examples{ library(ggplot2) ggplot(mpg, aes(class, fill = class)) + geom_bar() + scale_fill_civilytics() ggplot(faithfuld, aes(waiting, eruptions, fill = density)) + geom_tile() + scale_fill_civilytics("seq_ember", discrete = FALSE) }