7 Data Visualization with AlgebraOfGraphics.jl

    AlgebraOfGraphics.jl follows a layered approach to construct visualizations in a structured manner. There are four main types of layers:

    • data layer
    • mapping layer
    • statistical transformation layer

    allows you to construct all of these types of layers with functions that return a Layer object, in which all of the information necessary will be encoded. You can then perform two operations on layers:

    • multiplication with *: this fuses two or more layers into a single layer
    • associative property: (a * b) * c = a * (b * c)
    • distributive property: a * (b + c) = (a * b) + (a + b)

    To get started with AlgebraOfGraphics.jl, you’ll need to load it along with a desired backend (Chapter 6):