plot-api / jetbrains.letsPlot.scale / scale_color_identity

scale_color_identity

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

Use this scale when your data has already been scaled. I.e. it already represents aesthetic values that ggplot2 can handle directly. This will not produce a legend unless you also supply the breaks and labels.

Input data expected: list of strings containing a) names of colors (i.e. 'green') b) hex codes of colors (i.e 'x00ff00') c) css colors (i.e 'rgb(0,255,0)')

Parameters

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.

guide -

    Guide to use for this scale.
    It can either be a string ("colorbar", "legend") or a call to a guide function (guide_colorbar(), guide_legend())
    specifying additional arguments.
    "none" will hide the guide.