chooseColors {PRECAST}R Documentation

Choose color schema from a palette

Description

Choose color schema from a palette

Usage

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()


[Package PRECAST version 1.6.5 Index]