%useLatestDescriptors
%use lets-plot
LetsPlot.getInfo()
Lets-Plot Kotlin API v.4.4.2. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.0.0.
val n = 100
val rand = java.util.Random(37)
val data = mapOf<String, Any>(
"x" to List(n) { listOf("a", "b", "c").random() },
"y" to List(n) { rand.nextGaussian() }
)
letsPlot(data) { x = "x"; y = "y" } + geomBoxplot(whiskerWidth = 0.2)