AlgebraOfGraphics.jl
An algebraic spin on grammar-of-graphics data visualization in Julia. Powered by the Makie.jl plotting ecosystem.
Install / Use
/learn @MakieOrg/AlgebraOfGraphics.jlREADME
Visualize your data using a few simple building blocks that can be
composed using + and *. AlgebraOfGraphics puts a new algebraic spin
on the grammar of graphics idea known from R’s
ggplot2 package.
Visualizations are powered by Makie and you have its full capabilities available to tweak figures produced by AlgebraOfGraphics.
Example
using AlgebraOfGraphics, CairoMakie
penguins = AlgebraOfGraphics.penguins()
set_aog_theme!()
update_theme!(Axis = (; width = 150, height = 150))
spec = data(penguins) * mapping(:bill_length_mm, :bill_depth_mm)
draw(spec)
by_color = spec * mapping(color = :species)
draw(by_color)
with_regression = by_color * (linear() + visual(alpha = 0.3))
draw(with_regression)
facetted = with_regression * mapping(col = :sex)
draw(facetted)
draw(facetted, scales(Color = (; palette = :Set1_3)))
Acknowledgements
Analyses rely on StatsBase.jl, Loess.jl, KernelDensity.jl, and GLM.jl. Some of their documentation is transcribed here.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
