This function returns one of built-in color palettes from a specified data package.

get_palette(
  palet = c("cohort", "study", "country", "domain", "instrument", "wave"),
  na_color = "grey"
)

Arguments

palet

The name of the list component in the built-in color palette list gsed_palettes. Currently implemented are "cohort", "study", "cohort", "country", "domain", "wave" and "instrument".

na_color

The color that is return if not found. The default is "grey".

Value

The selected color palette. If not found, it returns the single color specified by na_color.

Examples

if (FALSE) { # \dontrun{
 get_palette("domain")
 } # }