Figure title for a faceted plot in AlgebraOfGraphics

CameronBieganek
Mon, 21 Jun 2021 20:25:46 +0000
General Usage

I can’t seem to get an overall figure title for a faceted plot in AlgebraOfGraphics:

using CairoMakie
using AlgebraOfGraphics
using DataFrames

df = DataFrame(
    x = randn(100),
    y = randn(100),
    g = rand(["a", "b", "c", "d"], 100)
)

plt = data(df) * mapping(:x, :y, layout = :g)

Both of the following make a figure with no overall title:

draw(plt; axis = (; title = "hello world"))
draw(plt; figure = (; title = "hello world"))

Does anyone know how to do this?

11 posts - 5 participants