% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colors.R \name{scale_color_civilytics} \alias{scale_color_civilytics} \title{Civilytics color scale for ggplot2} \usage{ scale_color_civilytics(palette = "main", discrete = TRUE, ...) } \arguments{ \item{palette}{Character. Palette name passed to [civilytics_pal()]. Defaults to `"main"`.} \item{discrete}{Logical. `TRUE` (default) for a discrete scale; `FALSE` for a continuous gradient via [ggplot2::scale_color_gradientn()].} \item{...}{Additional arguments passed to the underlying ggplot2 scale function.} } \value{ A ggplot2 scale object. } \description{ Applies a Civilytics brand palette to the `colour` aesthetic. Use `discrete = TRUE` for categorical variables and `discrete = FALSE` for continuous gradients. } \examples{ library(ggplot2) ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point() + scale_color_civilytics() ggplot(mpg, aes(displ, hwy, colour = cty)) + geom_point() + scale_color_civilytics("sequential", discrete = FALSE) }