Skip to content

sswatson/GG.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GG.jl

Binder

GG is a ggplot2-inspired grammar-of-graphics interface to Plots.jl). It is designed to allow ggplot2 examples to be translated fairly directly from R to Julia:

using GG, RDatasets
iris = dataset("datasets", "iris")
ggplot(data = iris, 
       mapping = aes(x = :SepalLength,
                     y = :SepalWidth)) +
    geom_point(size = 2, legend = false) + 
    geom_smooth(size = 2)

iris scatter plot

Unprocessed keywords are passed directly to the underlying Plots object, so you can mix ggplot2 and Plots features.

GG is a work in progress. The currently supported geoms are:

geom_point
geom_jitter
geom_line
geom_path
geom_step
geom_polygon
geom_ribbon
geom_area
geom_bar
geom_hist
geom_density
geom_text
geom_smooth

Check out test/runtests.jl for examples.

Installation

using Pkg
Pkg.add(PackageSpec(url="https://github.com/sswatson/GG.jl"))

About

A grammar-of-graphics interface to Plots.jl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published