gmri_cols: Retrieve GMRI Hex Color(s)

View source: R/gmri_palettes.R

gmri_colsR Documentation

Retrieve GMRI Hex Color(s)

Description

Return hex codes in return for named GMRI colors. Available options are: seafood purple, midnight blue, dark blue, gmri blue, ecosystems cyan, blue economy teal, moss green, warm yellow, lv orange, climate change red, light gray, & dark gray.

Usage

gmri_cols(...)

Arguments

...

Character names of official GMRI colors

Examples


#Pull a single Hex code
gmri_cols("gmri blue")

#Multiple colors
gmri_cols("gmri blue", "moss green")

#Get the whole list of colors
gmri_cols()

#Add select colors to ggplot3 functions
ggplot2::ggplot(mtcars, ggplot2::aes(hp, mpg)) +
  ggplot2::geom_point(color = gmri_cols("gmri blue"), size = 4, alpha = .8)


gulfofmaine/gmRi documentation built on Jan. 26, 2025, 5:12 a.m.