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

Line Plot

Function Keywords:

x::AbstractVector
y::AbstractVector
group::AbstractVector
points::Bool = false
pointShape::AbstractString = "circle"
pointSize::Real = 10

Multiple Lines In Single Plot

using Vega

x = [1,2,3,4,5,1,2,3,4,5]
y = [5,2,3,6,8,10,12,15,18,30]
group = [1,1,1,1,1,2,2,2,2,2]

l = lineplot(x = x, y = y, group = group)

lineplot(x = x, y = y, group = group)

Adding Points

lineplot(x = x, y = y, group = group, points = true)

Making Points Larger

lineplot(x = x, y = y, group = group, points = true, pointSize = 20)