plot-api / jetbrains.letsPlot.scale / scale_color_manual

scale_color_manual

fun scale_color_manual(values: List<Any>, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

Create your own discrete scale for color aesthetic

Parameters

values - list of strings (encoding colors) or color values A set of aesthetic values to map data values to. If this is a named vector, then the values will be matched based on the names. If unnamed, values will be matched in order (usually alphabetical) with the limits of the scale.

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 numbers A numeric vector of positions (of ticks)

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

limits - list Continuous scale: a numeric vector of length two providing limits of the scale. Discrete scale: a vector specifying the data range for the scale. and the default order of their display in guides.

naValue - an aesthetic value which is used when data in not available.