%useLatestDescriptors
%use dataframe
%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 mpgDf = DataFrame.readCSV("https://raw.githubusercontent.com/JetBrains/lets-plot-kotlin/master/docs/examples/data/mpg.csv")
mpgDf.head()
DataFrame: rowsCount = 5, columnsCount = 12
val mpgMap = mpgDf.toMap()
val p = letsPlot(mpgMap) { x = "drv"; y = "hwy" }
p + geomPoint()
p + geomJitter()
p + geomBoxplot(outlierColor = "pen") { color = "drv" } +
geomJitter(height = 0.0) { color = "drv" }