Vega.jl

A Julia package for generating visualizations in Vega

Getting Started
Visualization Primitives
Creating A Visualization From Scratch

Pre-defined Visualizations

Area Plot
Aster Plot
Bar Plot
Box Plot
Bubble Chart
Choropleth
Dot Plot
Grouped Bar
Heatmap
Horizon
Histogram
Joint Plot
Line Plot
Pie/Donut Chart
Population Chart
Punchcard
Ribbon Plot
Rug Plot
Scatter Plot
Stem-and-Leaf Plot
Stream Plot
Waterfall
Word Cloud

Interactive Visualization

Interact.jl and Vega in Jupyter Notebooks
Creating Interactive Sites Using Escher and Vega

Visualization Mutating Functions

colorscheme!
General Visualization Properties
hline! / vline!
hover!
jitter!
legend!
stroke!
text!
title!
xlab! / ylab!
xlim! / ylim!

View the Project on GitHubjohnmyleswhite/Vega.jl

Dot Plot

Function Keywords:

x::AbstractVector
y::AbstractVector
group::AbstractVector
sort::Bool = true

Dot Plot

df = DataFrame()
for p in JSON.parse(readall(Pkg.dir("Vega", "vega-datasets/movies.json")))
    df = vcat(df, DataFrame(;[symbol(k)=>v for (k,v) in p]...))
end

a = dotplot(x = x = df[:US_Gross], y = df[:Major_Genre])
a.width = 500
ylab!(a, title = " ", grid = true)
xlab!(a, title = "Avg. U.S. Gross Movie Receipts", format = ".3s")