in plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/scale/XYDiscrete.kt [111:142]
fun scaleYDiscrete(
name: String? = null,
breaks: Any? = null,
labels: Any? = null,
lablim: Int? = null,
limits: List<Any>? = null,
expand: List<Number>? = null,
naValue: Number? = null,
format: String? = null,
reverse: Boolean? = null,
position: String? = null
): Scale {
checkScaleExpand(expand)
return Scale(
aesthetic = Aes.Y,
name = name,
breaks = breaks,
labels = labels,
lablim = lablim,
limits = limits,
expand = expand,
naValue = naValue,
format = format,
position = position,
otherOptions = Options(
mapOf(
Option.Scale.DISCRETE_DOMAIN to true,
Option.Guide.REVERSE to reverse
)
)
)
}