AlgebraOfGraphics.jl
AlgebraOfGraphics.jl copied to clipboard
Function to manage plot title?
It would be nice to have the option to add or change the main title of the plot, something like ggtitle in ggplot2 or like the title property in Vega-Lite. I believe there's no official way to do this yet or at least I couldn't find anything in the docs.
Thanks for this awesome package!
With the axis keyword you can pass options to Makie's Axis object, which includes a title option, so you can write draw(..., axis=(; title="My title")).
This, however, will not work together with faceting. There should be such an option that works even when faceting.
I also ran into the issue with faceting. It's not a great solution, but you can add your own Label like so:
plt = draw(...) # suppose this has two columns.
Makie.Label(plt.figure[0, 1:2], "Title text";
fontsize=20, font=:bold)