Grammar of Graphics in Python


Follow to receive video recommendations   a   A
Upvotes: DownVotes:
Age: 6 months     Page Views: 222
Votes / View: 23    Wilson Score: 0.57

A grammar is, according to Wikipedia, the set of structural rulesgoverning the composition of clauses, phrases, and words in any givennatural language. A grammar of graphics is then the set of structuralrules governing the composition of visual elements. Transforming datainto visual representations using composition is quite powerful andallows to create complex visualisations with simple building blocks.While the ideas behind the grammar of graphics date back well into the80s, as a Python developer it is only quite recently that we can makeuse of it. Altair, backed by the vega specification, is one of the fewplotting libraries in Python that provide such a declarative andcompositional API.In this talk I will give an introduction to the core concepts behind thegrammar of graphics as well as practical examples how to use altair APIin Python to create vega plots.