A Probabilistic Grammar of Graphics
ACM Human Factors in Computing Systems (CHI) 2020 Best Paper Honorable MentionAbstract
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 firstclass 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.
Citation
BibTeX
@inproceedings{pgog-2020, title = {A Probabilistic Grammar of Graphics}, author = {Pu, Xiaoying and Kay, Matthew}, year = 2020, booktitle = {Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems}, publisher = {ACM}, series = {CHI '20}, doi = {10.1145/3313831.3376466} }