Modelled off of scales::show_col For an alternative to show_colors_with_names(ku_palette), try colorspace::swatchplot(as.list(ku_palette))

show_colors_with_names(
  colours,
  labels = TRUE,
  borders = NULL,
  cex_label = 1,
  ncol = NULL
)

Arguments

colours

character, vector of RGB hex codes with names for the colors

labels

logical, whether to display color name labels

borders

color to show for borders

cex_label

size for label

ncol

number of columns (default: NULL means to make the output as square as possible.)

Examples

if (interactive()) {
  show_colors_with_names(ku_palette)
}