Count Plot Settings

Edit pageLast modified: 25 November 2023
val classesDF = dataFrameOf(
    "classes" to listOf(
        "First", "Second", "Third", "Third", "Second",
        "Third", "First", "Second", "Third", "First",
        "Third", "Second", "Third", "First", "Second",
        "Third", "First", "Third", "Second", "Third",
        "First", "Second", "Third", "First", "Third",
        "Second", "Third", "First", "Second", "Third",
        "First", "Third", "Second", "Third", "First",
        "Second", "Third", "First", "Second", "Third"
    )
)


classesDF.plot {
    countPlot("classes") {
        alpha = 0.8
        fillColor(Stat.x) {
            legend.type = LegendType.None
        }
        x.axis.name = "class"
    }
}
Count Plot Settings