text ScatterLines
using AlgebraOfGraphics, CairoMakie
using Random, DataFrames
Random.seed!(134)
# from this [post](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065/22).
d = DataFrame(name = repeat(["A","B","C","D","E","F"], inner=4),
time=repeat([0,1,3,6], outer=6), value = rand(24));
pSL = data(d)
pSL *= mapping(:time, :value, color = :name, text = :name => verbatim)
pSL *= visual(ScatterLines) + visual(Makie.Text, align = (:center, :bottom))
with_theme(theme_ggplot2(), resolution = (600,400)) do
draw(pSL)
end
Warning
This example was autogenerated using:
using Pkg
Pkg.status(["CairoMakie", "DataFrames", "AlgebraOfGraphics"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
[cbdf2221] AlgebraOfGraphics v0.6.16
[13f3f980] CairoMakie v0.10.6
[a93c6f00] DataFrames v1.5.0
This page was generated using Literate.jl.