R/get_fishpals_cols.R

Defines functions get_fishpals_cols

Documented in get_fishpals_cols

#' Function that extracts hex codes form the fishpals_colors vector by name
#'
#' @md
#' @param ... Quoted color name or vector of names.
#' @return The 6-digit hexes attached to the name
#'
#' @export
#' @examples
#' get_fishpals_cols()
#' get_fishpals_cols("chinook red")

get_fishpals_cols <- function(...) {
  cols <- c(...)

  if (is.null(cols))
    return (fishpals_cols)

  fishpals_cols[cols]
}
fishsciences/fishpals documentation built on July 11, 2022, 12:32 a.m.