using CairoMakie, AlgebraOfGraphics
Here I try to follow as much as possible the philosophy of AoG. from here
# create some data x = range(-π, π, length=50) y = sin.(x) df = (; x, y) # declare the dataset xy = data(df) # declare the arguments of the analysis xy *= mapping(:x, :y) # define your visual layer, what kind of plot do you want? xy *= visual(ScatterLines) # draw your figure with_theme(theme_ggplot2(), resolution = (600,400)) do xy |> draw end
This example was autogenerated using:
using Pkg Pkg.status(["CairoMakie", "AlgebraOfGraphics"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml` [cbdf2221] AlgebraOfGraphics v0.6.14 [13f3f980] CairoMakie v0.10.2
This page was generated using Literate.jl.