fun scaleGrey()

in plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/scale/ColorContinuous.kt [757:791]


fun scaleGrey(
    aesthetic: Any,
    start: Number? = null,
    end: Number? = null,
    name: String? = null,
    breaks: Any? = null,
    labels: Any? = null,
    lablim: Int? = null,
    limits: Pair<Number?, Number?>? = null,
    naValue: Any? = null,
    format: String? = null,
    guide: Any? = null,
    trans: String? = null
): Scale {
    checkGreyScaleStartEnd(start, end)
    return Scale(
        aesthetic = aesthetic,
        name = name,
        breaks = breaks,
        labels = labels,
        lablim = lablim,
        limits = limits,
        naValue = naValue,
        format = format,
        guide = guide,
        trans = trans,
        otherOptions = Options(
            mapOf(
                START to start,
                END to end,
                SCALE_MAPPER_KIND to COLOR_GREY
            )
        )
    )
}