R/scale_colour_oda.R

Defines functions scale_colour_oda

Documented in scale_colour_oda

#' A wrapper for ggplot2::discrete scale which applies the CU Boulder ODA brand palette
#'
#' @param primary A string indicating the name of the primary color to use (defaults to gold)
#' @param other A string indicating the name of the other color to use (defaults to black)
#' @param ... Pass-through arguments for ggplot2::discrete_scale
#' @return A ggplot2 discrete color scale
#' @export
scale_colour_oda = function(primary = "gold",other = "black",...) {
  ggplot2::discrete_scale("colour", "oda",oda_pal(primary, other),...)
}
cu-boulder/themeODA documentation built on Dec. 31, 2020, 10:10 p.m.