plot-api / jetbrains.letsPlot.scale / scale_shape_identity

scale_shape_identity

fun scale_shape_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: numeric codes of shapes.

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 - A result returned by guide_legend() function or "none" to hide the guide.