plot-api / jetbrains.letsPlot.scale / scale_color_discrete

scale_color_discrete

fun scale_color_discrete(h: Pair<Int, Int>? = null, c: Int? = null, l: Int? = null, hstart: Int? = null, direction: Int? = null, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

Qualitative color scale with evenly spaced hues for color aesthetic.

Parameters

h - pair of two numbers Range of hues, from 0 to 360

c - numeric in range (0,99) Chroma (intensity of color), 0 is grey, default - 50

l - numeric in range (0,99) Luminance (lightness), 0 - black, 99 - white, default - 90

direction - numeric Direction to travel around the color wheel, 1 = clockwise (default), -1=counter-clockwise

name - string The name of the scale - used as the axis label or the legend title. If None, the default, the name of the scale is taken from the first mapping used for that aesthetic.

breaks - list of data values A vector specifying values to display as breaks (ticks) on guides (axis)

labels - list of strings A vector of labels (on ticks)

limits - list of data values A vector specifying values to display with the scale and their order in guides (axis).