R/helpers.R

Defines functions get_all_colors

Documented in get_all_colors

# General Helper Functions

#' Get all colors in an RColorBrewer palette
#'
#' @param pal A string - the name of \code{RColorBrewer} palette
#'
#' @return An string vector

get_all_colors <- function(pal) {

    colors <- suppressWarnings({RColorBrewer::brewer.pal(12, pal)})
    return(colors)
}
xmc811/xmcutil documentation built on June 4, 2021, 10:48 a.m.