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
)character, vector of RGB hex codes with names for the colors
logical, whether to display color name labels
color to show for borders
size for label
number of columns (default: NULL means to make the output as square as possible.)
if (interactive()) {
show_colors_with_names(ku_palette)
}