Introducing the Grammar of Graphics
Wilkinson’s book, The Grammar of Graphics, defined grammar to express the underlying structure of statistical graphs. This allowed us to go from a fixed set of named graphs, such as scatter or line plots, to a whole range of more complex visualizations. This was possible since grammar sets up the rules to combine different components to create new graphs. The R language adaptation of this grammar, described in Wickham’s article, A Layered Grammar of Graphics, has been the most influential to the Julia ecosystem. This section will discuss the main aspects of this grammar so that we can understand their adaptations to the Julia language.
The main components of a graph, according to the Layered Grammar of Graphics, are as follows:
- Data: This is a critical part of a plot that’s able to turn an abstract graph specification into a concrete instance for that specific data. We will discuss data and its representation in more...