4 ms·
Wow nice, it's based on ggplot2-like grammar-of-graphics language. See examples here: https://lets-plot.org/pages/charts.html https://lets-plot.org/pages/charts
by ivansavz 3y ago
Wow nice, it's based on ggplot2-like grammar-of-graphics language. See examples here: https://lets-plot.org/pages/charts.html https://lets-plot.org/pages/charts.html
The data plots look pretty nice: https://lets-plot.org/pages/charts.html#discrete-icon-discrete https://lets-plot.org/pages/charts.html#discrete-icon-discre...
And so do the distribution plots: https://lets-plot.org/pages/charts.html#visualization-of-distribution-icon-visualization-of-distribution https://lets-plot.org/pages/charts.html#visualization-of-dis...
How does this project compare to `plotnine`, which is the ggplot2-like plotting library in Python?
- billfruit 3y agoIs ggplot2 generic enough that it allows one to create any graph one wants, or is it opinionated in how or what graphs can be made? However the best thing about this library may be that it is available for Kotlin.
- wing-_-nuts 3y ago>However the best thing about this library may be that it is available for Kotlin. What? How's that? It's written in python. Does kotlin have python interop?
- 411111111111111 3y agoIt's linked in the description https://github.com/JetBrains/lets-plot-kotlin https://github.com/JetBrains/lets-plot-kotlin
- wodenokoto 3y agoGgplot is opinionated, but mostly in its api. From memory the only thing you can’t do in base ggplot is have to y-axis, but there are plenty of libraries available that expands the types of plots available (eg gggraph for plotting network graphs)
- smodo 3y agoYou can’t have two y axes? I’d call that a pretty strong opinion.
- dav43 3y agoThis isn’t the case
- V1ndaar 3y agoWell, the thing is you can have two y axes, but they must be simple transformations one another. The reason being (iirc, don't want to put words into Hadley Wickham's mouth) is that if you cannot provide a transformation from one y axis to the other, then the data shouldn't be in one plot to begin with (as it then shows clearly distinct data).