1 Star
Updated Last
7 Years Ago
Started In
June 2013



This package is unmaintained. Its reliability is not guaranteed.


Everyone loves ggplot2. This package imitates the simplest features from ggplot2 in Julia by using the Vega.jl package to turn Julia data structures into Vega visualization specs.

This is a very early draft. In the long run, this package is likely to be superceded by Gadfly, although this may continue to be the only Julia package that is capable of producing Vega specifications as output.

For now, it provides some useful graphical abstractions that are otherwise missing from Julia.

Usage Examples

Here are some very simple examples of VGPlot that operate at the limits of what this early draft release can do:

using VGPlot

df = DataFrame()
df["x"] = 0.0:0.1:(2.0 * pi)
df["y"] = sin(df["x"]) + sin(2 * df["x"]) + sin(3 * df["x"])


Example 1

vgplot(df) + geom_point()

Example 2

vgplot(df) + geom_line()

Example 3

vgplot(df) + geom_point() + geom_line()

Example 4

vgplot(df) +
  geom_point(size = 10.0, shape = "diamond") +

Example 5

vgplot(df) +
  geom_point(size = 25.0, shape = "cross") +

Example 6

using RDatasets

iris = data("datasets", "iris")

v = vgplot(iris,
	       x = "Sepal_Length",
	       y = "Sepal_Width",
	       group = "Species")

Example 7

v = v + geom_point()

Example 8

v = v + geom_line()

Example 9