plot-api / jetbrains.letsPlot.scale / scale_y_datetime

scale_y_datetime

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

Continuous position scale (y).

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

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

limits - pair A numeric vector of length two providing limits of the scale.

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.05, additive = 0.

naValue -

    Missing values will be replaced with this value.

format -

Specifies the format pattern for labels on the scale.

Format patterns in the format parameter can be just a number format (like "d") or a string template where number format is surrounded by curly braces: "{d} cylinders". Note: the "$" must be escaped as "\$" For more info see: https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/formats.md

Examples: "%d.%m.%y" -> "06.08.19" "%B %Y" -> "August 2019" "%a, %e %b %Y %H:%M:%S" -> "Tue, 6 Aug 2019 04:46:35"