R/scale_fill_discrete_grattan.R

#' scale fill scale for grattan (uses the palette)
#' @export
#' @param ... arguments passed to discrete_scale.
#' @param reverse (logical) Option to reverse the palette.
#' @details A function controlling the colors.

scale_fill_discrete_grattan <- function(..., reverse = FALSE) ggplot2::discrete_scale("fill", "hue", function(n) gpal(n, reverse = reverse), ...)
HughParsonage/grattanCharts documentation built on May 8, 2019, 10:52 a.m.