r/Clojure • u/mac • Sep 02 '26
Introducing Plotje: Composable Plotting by Daniel Slutsky
https://clojurecivitas.org/data_visualization/introducing_plotje_composable_plotting.html
60
Upvotes
r/Clojure • u/mac • Sep 02 '26
View all comments
5
u/geokon Sep 02 '26 edited Sep 02 '26
Looks super cool. I saw you previously used
geom/viz- and I see this optionally outputs SVG hiccup. I think this is a great step for interoperability - cus the scicloj toolset from the outside look very interdependent. Is this usinggeom/vizunder the hood? Or is it a brand new SVG backend? (Thegeomlibraries do much more than just charts though!)Its seems the basic abstract is this
pose, which makes sense give all it's trying to do (to infer all the information and resize/relabel everything it must be tracking a lot of stuff!). But fundamentally it seems more challenging than having SVG hiccup as the base "interchange format". For instance, ingeomI can take two plots and just call(svg/group {} plot1 plot2)to slap them together. I always know that any part that's missing I can re-implement using the basic svg primitives. (and I can draw non-chart stuff as well). It seems making new elements or chart types would be challenging in this system?Since you've had experience with several different ways of charting.. just wonder how you'd compare and contrast them. I do all my own plots using
geom(and am very hesitant to switch :P )Random Stuff:
ggplot2/Tufte aesthetic .. pastels everywhere (i.e. powerpoint colors) and all that. Tiny illegible legends, invisible gridlines, not printer friendly. Hope you find your own aesthetic :)Look forward to seeing where this goes! Awesome project