R/get_graf_colours.R

Defines functions get_graf_colours

Documented in get_graf_colours

#' Get graf internal
#'
#' Function to make grafify colour scheme. [Thank you Dr Simon](https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2).
#' 
#' To visualise grafify colours use \code{plot_grafify_palette}.
#'
#' @param ... internal
#' @return This function returns names and hexcodes of colours in grafify as a character vector.
#' @export get_graf_colours

get_graf_colours <- function(...){
  cols <- c(...)
  if(is.null(cols))
    return(graf_colours)
  graf_colours[cols]
}

Try the grafify package in your browser

Any scripts or data that you put into this service are public.

grafify documentation built on Oct. 7, 2023, 5:06 p.m.