Posit Announces Alpha Release of ggsql Grammar of Graphics for SQL

Original: ggsql: A Grammar of Graphics for SQL

Why This Matters

Bridges SQL and data visualization, enabling analysts to create graphics without switching tools

Posit released alpha version of ggsql, implementing grammar of graphics syntax directly in SQL queries for data visualization. The tool enables structured visualization creation within SQL using familiar grammar patterns, supporting platforms like Quarto, Jupyter notebooks, Positron and VS Code.

Posit announced the alpha release of ggsql, a new tool that brings the grammar of graphics to SQL syntax for data visualization. The system allows users to create visualizations directly within SQL queries using commands like VISUALIZE, DRAW, and PLACE. Examples show creating scatter plots with 'VISUALIZE bill_len AS x, bill_dep AS y FROM ggsql:penguins DRAW point' and adding layers incrementally. The tool maintains the modular approach of grammar of graphics, allowing gradual plot evolution through adding mappings, layers, and styling. A complete example demonstrates creating histograms from astronaut data with complex transformations. The tool is compatible with Quarto, Jupyter notebooks, Positron, and VS Code environments, targeting data analysts who work primarily in SQL environments.

Source

opensource.posit.co — Read original →