plot-api / jetbrains.letsPlot.scale / scale_color_discrete

scale_color_discrete

fun scale_color_discrete(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. Defaults to the Brewer 'Set2' palette (or 'Set3' if the categories count > 8)

Parameters

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