%useLatestDescriptors %use lets-plot %use dataframe LetsPlot.getInfo() val iris = DataFrame.readCSV("https://raw.githubusercontent.com/JetBrains/lets-plot-kotlin/master/docs/examples/data/iris.csv") iris.head() val p = letsPlot(iris.toMap()) { x = "species"; y = "sepal_length" } gggrid( plots = listOf( p + geomViolin(trim = true) + ggtitle("trim=true (default)"), p + geomViolin(trim = false, tailsCutoff = 1) + ggtitle("trim=false, tailsCutoff=1"), p + geomViolin(trim = false, tailsCutoff = 2) + ggtitle("trim=false, tailsCutoff=2"), p + geomViolin(trim = false, tailsCutoff = 3) + ggtitle("trim=false, tailsCutoff=3 (default)"), ), ncol = 2, cellWidth = 400, cellHeight = 300 )