Makie’s Algebra of Graphics
The AlgebraOfGraphics
package is another Julia implementation of the Grammar of Graphics. It renders the plots using Makie. Therefore, you need to load a Makie backend, such as CairoMakie
, to work with it. The grammar of the Algebra of Graphics has the following main components:
- Data: The
data
function indicates the dataset to be used. - Mapping:
AlgebraOfGraphics
uses themapping
function to indicate the mapping between data variables and aesthetics. The first three positional arguments designate the variables that have been mapped to the x, y, and z positions. The mapping function maps other aesthetics, such ascolor
andmarkersize
, using keyword arguments. The function also implements a pair syntax for transformations of the data. - Visual: This is related to geometry on other grammar implementations as it designates what type of named plot we are creating.
AlgebraOfGraphics
uses thevisual
function to indicate a Makie named plot using...