ScatterLines

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

Warning

This example was autogenerated using:

using Pkg
Pkg.status(["CairoMakie", "AlgebraOfGraphics"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
  [cbdf2221] AlgebraOfGraphics v0.6.16
  [13f3f980] CairoMakie v0.10.6

This page was generated using Literate.jl.