Because of operator precedence, the used class approach for geoms (such as geomBar) fails to provide a convenient syntax when showing a plot. It's a confusing mix of ., +, as well as round and curly brackets:
Example
// letsplot
(df.letsPlot{ x = "status" } + geomBar ()).show()
// kravis for comparison
df.plot(x="status").geomBar().show()
By using a builder approach and using . for chaining (as we do in most other kotlin apis including kotlin-dataframe, a more user-friendly API experience would be possible.
Because of operator precedence, the used class approach for geoms (such as geomBar) fails to provide a convenient syntax when showing a plot. It's a confusing mix of
.,+, as well as round and curly brackets:Example
By using a builder approach and using
.for chaining (as we do in most other kotlin apis including kotlin-dataframe, a more user-friendly API experience would be possible.