% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colors.R \name{civilytics_pal} \alias{civilytics_pal} \title{Civilytics palette function (closure)} \usage{ civilytics_pal(name = "qual", reverse = FALSE) } \arguments{ \item{name}{Character. Palette name. See `names(civilytics_palettes)`.} \item{reverse}{Logical. Reverse the palette order. Default `FALSE`.} } \value{ A function that takes integer `n` and returns `n` hex color codes. } \description{ Returns a closure `function(n)` suitable for passing to [ggplot2::discrete_scale()] or similar scale constructors. } \examples{ pal_fn <- civilytics_pal("qual") pal_fn(4) }