logo

ggsql: A Grammar of Graphics for SQL

Posted by thomasp85 |3 hours ago |11 comments

anentropic 2 hours ago[2 more]

Maybe I skim read it too fast, but I did not find any clear description in the blog post or website docs of how this relates to SQL databases

I was kind of guessing that it doesn't run in a database, that it's a SQL-like syntax for a visualisation DSL handled by front end chart library.

That appears to be what is described in https://ggsql.org/get_started/anatomy.html

But then https://ggsql.org/faq.html has a section, "Can I use SQL queries inside the VISUALISE clause," which says, "Some parts of the syntax are passed on directly to the database".

The homepage says "ggsql interfaces directly with your database"

But it's not shown how that happens AFAICT

confused

2 hours ago

Comment deleted

radarsat1 2 hours ago

Wow, love this idea.

kasperset 2 hours ago

Looks intriguing. Brings plotting to Sql instead of “transforming” sql for plotting.

thomasp85 3 hours ago[3 more]

The new visualisation tool from Posit. Combines SQL with the grammar of graphics, known from ggplot2, D3, and plotnine