Count Plot Settings
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"
}
}
val classes = 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"
)
plot {
countPlot(classes) {
alpha = 0.8
fillColor(Stat.x) {
legend.type = LegendType.None
}
x.axis.name = "class"
}
}
Last modified: 25 November 2023