Lune

CHI2020Top-tier venue

A Probabilistic Grammar of Graphics

Xiaoying Pu, Matthew Kay

Abstract

Visualizations depicting probabilities and uncertainty are used everywhere from medical risk communication to machine learning, yet these probabilistic visualizations are difficult to specify, prone to error, and their designs are cumbersome to explore. We propose a Probabilistic Grammar of Graphics (PGoG), an extension to Wilkinson's original framework. Inspired by the success of probabilistic programming languages, PGoG makes probability expressions, such as P(A|B), a first-class citizen in the language. PGoG abstractions also reflect the distinction between probability and frequency framing, a concept from the uncertainty communication literature. It is expressive, encompassing product plots, density plots, icon arrays, and dotplots, among other visualizations. Its coherent syntax ensures correctness (that the proportions of visual elements and their spatial placement reflect the underlying probability distribution) and reduces edit distance between probabilistic visualization specifications, potentially supporting more design exploration. We provide a proof-of-concept implementation of PGoG in R.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • How Data Analysts Use a Visualization Grammar in Practice cites Integrated Visualization Editing via Parameterized Declarative Templates
  • How Data Analysts Use a Visualization Grammar in Practice cites ComputableViz: Mathematical Operators as a Formalism for Visualisation Processing and Analysis
  • How Data Analysts Use a Visualization Grammar in Practice cites No Grammar to Rule Them All: A Survey of JSON-style DSLs for Visualization
  • No Grammar to Rule Them All: A Survey of JSON-style DSLs for Visualization cites Integrated Visualization Editing via Parameterized Declarative Templates
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Integrated Visualization Editing via Parameterized Declarative TemplatesAndrew M. McNutt, Ravi ChughCHI 2021 · 39 citations
  2. No Grammar to Rule Them All: A Survey of JSON-style DSLs for VisualizationAndrew M. McNuttIEEE VIS 2022 · 37 citations
  3. Investigating Perceptual Biases in Icon ArraysCindy Xiong, Ali Sarvghad, Daniel G. Goldstein, Jake M. Hofman et al.CHI 2022 · 35 citations
  4. How Data Analysts Use a Visualization Grammar in PracticeXiaoying Pu, Matthew KayCHI 2023 · 10 citations
  5. ComputableViz: Mathematical Operators as a Formalism for Visualisation Processing and AnalysisAoyu Wu, Wai Tong, Haotian Li, Dominik Moritz et al.CHI 2022 · 8 citations

Related papers

  1. ggdist: Visualizations of Distributions and Uncertainty in the Grammar of GraphicsMatthew KayIEEE VIS 2023 · 112 citations
  2. GoFish: A Grammar of More Graphics!Josh Pollock, Arvind SatyanarayanIEEE VIS 2025 · 2 citations
  3. Online and Interactive Bayesian Inference DebuggingNathanael Nussbaumer, Markus Böck, Jürgen CitoICSE 2026
  4. Higher Order Bayesian Networks, ExactlyClaudia Faggian, Daniele Pautasso, Gabriele VanoniPOPL 2024 · 4 citations
  5. Graphical Perception of Icon Arrays versus Bar Charts for Value Comparisons in Health Risk CommunicationJade Kandel, Jiayi Liu, Arran Zeyu Wang, Chin Tseng et al.IEEE VIS 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines