Choose color schema from a palette

chooseColors(
  palettes_name = c("Nature 10", "Light 13", "Classic 20", "Blink 23", "Hue n"),
  n_colors = 7,
  alpha = 1,
  plot_colors = FALSE
)

Arguments

palettes_name

a string, the palette name, one of "Nature 10", "Light 13", "Classic 20", "Blink 23" and "Hue n", default as 'Nature 10'.

n_colors

a positive integer, the number of colors.

alpha

a positive real, the transparency of the color.

plot_colors

a logical value, whether plot the selected colors.

Examples

chooseColors()
#> [1] "#E04D50FF" "#4374A5FF" "#F08A21FF" "#2AB673FF" "#FCDDDEFF" "#70B5B0FF"
#> [7] "#DFE0EEFF"