kandy 0.7.0 Help

Boxplot Categories

val random = kotlin.random.Random(42) fun generateData(category: String) = dataFrameOf((0..<10).map { it.toString() }) { List(100) { random.nextDouble(0.0, 100.0) } } .gather(*(0..<10).map { it.toString() }.toTypedArray()) .into("num", "value").add("category") { category } val dataset = generateData("category0") .concat(generateData("category1")) .concat(generateData("category2")) dataset.groupBy("category").plot { boxplot("num", "value") { boxes { position = Position.dodge() } } }
Boxplot Categories
Last modified: 06 December 2023