plot-api / jetbrains.letsPlot.scale / scale_x_discrete_reversed

scale_x_discrete_reversed

fun scale_x_discrete_reversed(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

Reversed discrete scale for x axis

Parameters

name - 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 ticks on axis.

labels - A vector of labels (on ticks).

limits - list of data values A vector specifying values to display on the axis and their order. Setting limits will remove data not included in the list.

expand - list of numbers A numeric vector of length two giving multiplicative and additive expansion constants. The vector size == 1 => only multiplicative expand (and additive expand by default). Defaults: multiplicative = 0, additive = 0.6.

naValue - Missing values will be replaced with this value.