The conversation

Lessons learnedExperience excerpt · English

Even in the Era AI, GGPlot's API is still the best charting API

Even in the Era AI, GGPlot's API is still the best charting API. The name "Grammar of Graphics" isn't just marketing, they literally sought to write a god damn grammar to was capable of expressing all possible qualitative graphics. They even wrote a book about how they went about it (not that it speaks to the quality of the API) https://link.springer.com/book/10.1007/0-387-28695-0 I actually stumbled upon this book when I was trying to look up how draftsmen (with pens and pencils on paper) did qualitative graphics as I found they had a lot of charm as opposed to modern charting libraries. It's something I noticed when looking through a bunch of historical RBA (Reserve bank of Australia) annual reports, the 1960-1980 charts had a lot of character, but then you go into the early 2000s and its a stale chart from excel. Anyways ggplot doesn't really recapture the magic of those older charts, but it seems use quite a few of those as a baseline for how to communicate information. …

Original discussionFlint: A Visualization Language for the AI Era69 source comments · at import
7

Community replies 0

No community replies yet. Add your perspective.

Replies from the source 7

Direct replies available in this import. Original-language excerpts.

NI

Note that if you are affiliated with a University you probably can download a pdf of the book in the link for free.

Full original
WI

> They even wrote a book about how they went about it (not that it speaks to the quality of the API) Wilkinson’s Grammar of Graphics inspired ggplot. The textbook doesn’t even mention ggplot. Shameless plug for my own GoG inspired DSL, Algraf: https://williamcotton.github.io/algraf/demos There’s a Minard plot in the demos!

Full original
JI

To be fair, the Vega-lite backend is json mostly based on GG ideas. In this vein, I think I prefer ggsql that made it to HN recently [0]. [0]: https://ggsql.org/

Full original
PO

How would you quantify the magic of these older charts? What is it that makes them have charm and character?

Full original
WI

Well, for that hand-drawn charm if you're willing to use METAPOST there is: https://github.com/jemmybutton/fiziko

Full original
NY

Yeah Grammar of Graphics semantics are already very ideal for both humans and agents alike. Ggsql is a recent project that implements it as SQL user defined functions which is even more agent friendly I dont see what this brings to the table

Full original
AB

Have you checked out plotnine? https://raw.githubusercontent.com/rstudio/cheatsheets/main/p... it's made by the same people behind ggplot. Hadley Wickham worked for RStudio which also created plotnine. plotnine is currently sponsored by Posit where Hadley works.

Full original
Continue on Hacker News

Respect different perspectives. Share concrete experiences.

Sign in to post, reply, repost, and quote.