Access/interpolate from one of the menu of KU palettes

ku_pal(palette = "full", reverse = FALSE, ...)

Arguments

palette

character vector. See ku_palettes.

reverse

boolean. Indicates whether to reverse the order.

...

Additional arguments to pass to colorRampPalette()

Value

a function taking a number of colors and returning a palette

Examples

if (interactive()) {
  my_palette <- ku_pal("div_red_blue")
  my_palette(8)
  show_colors_with_names(my_palette(7), ncol = 1)
}