plot-api / jetbrains.letsPlot.scale / scale_linetype_identity

scale_linetype_identity

fun scale_linetype_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: numetic codes or names of line types (i.e 'dotdash'). The codes are: 0 = blank, 1 = solid, 2 = dashed, 3 = dotted, 4 = dotdash, 5 = longdash, 6 = twodash

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.