R/color.name.R

Defines functions color.name

Documented in color.name

#' @title Color Name
#' @description Return the name of a color listed given the number.
#'  
#' @param i integer specifying color .
#' 
#' @return character value of 'i' color.
#' 
#' @author Eric Archer \email{eric.archer@@noaa.gov}
#' 
#' @export
#' 
color.name <- function(i) grDevices::colors()[i]

Try the swfscMisc package in your browser

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

swfscMisc documentation built on Sept. 8, 2023, 5:55 p.m.