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

xlab! / ylab!

Arguments:

v::VegaVisualization
title::AbstractString = ""
grid::Bool = false
ticks::Number = 0
format::AbstractString = ""
layer::AbstractString = "front",
properties::Dict = Dict{Any, Any}
tickSize::Number = 0
tickSizeMajor::Number = 0
tickSizeMinor::Number = 0
tickSizeEnd::Number = 0

This function mutates :VegaVisualization, adding/modifying the X axis or Y axis.

Default Axis labels

using Vega

x = [1:100; 1:100]
y = [[1:100] + randn(100); 3.0 + 1.5 * [1:100] + randn(100)]
group = [[1 for i in 1:100]; [2 for i in 1:100]]

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

Modified Axis labels

xlab!(v, title = "Weight (kg)")
ylab!(v, title = "Height (cm)")