Visual
The function visual
can be used to give data-independent visual information about the plot (plotting function or attributes).
The available plotting functions are documetned here. See the documentation of each plotting function to discover the available attributes.
# Examples
using AlgebraOfGraphics, CairoMakie
set_aog_theme!()
df = (x=randn(1000), y=randn(1000))
plt = data(df) * mapping(:x, :y) * AlgebraOfGraphics.density(npoints=50)
draw(plt * visual(Heatmap)) # plot as heatmap (the default)
draw(plt * visual(colormap=:viridis)) # set a different colormap
draw(plt * visual(Contour)) # plot as contour
draw(plt * visual(Contour, linewidth=2)) # plot as contour with thicker lines
This page was generated using Literate.jl.