kandy 0.7.0 Help

ErrorBars with Boxplot

val random = java.util.Random(42) val valuesA = List(100) { 3.0 + random.nextGaussian() * 0.5 } val valuesB = List(100) { 1.5 + random.nextDouble() * 4.5 } val valuesC = valuesA.zip(valuesB).map { (it.first + it.second) / 2.0 } val df = dataFrameOf( "value" to valuesA + valuesB + valuesC, "group" to List(100) { "a" } + List(100) { "b" } + List(100) { "c" } ) df.plot { statBoxplot("group", "value") { errorBars { x(Stat.x) yMin(Stat.min) yMax(Stat.max) borderLine.color(Stat.x) } } }
ErrorBars with Boxplot
Last modified: 22 November 2023