Skip to content

scaleFillManual doesn't work correctly with numbers #266

Open
@AndreiKingsley

Description

@AndreiKingsley

If domain of scale is numerical, scaleFillManual works like a continuous scale, even though it should work as discrete:

val yy = listOf(1, 2, 1, 2)
val cc = listOf(1, 2, 3, 4)

letsPlot() + geomTile() {
    x = xx
    y = yy
    fill = cc
} + scaleFillManual(values = listOf("red", "green", "blue", "yellow"), limits = listOf(1, 2, 3, 4))
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions