Skip to content

Translator from 'ggplot2' to 'Vega-Lite'

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

vegawidget/ggvega

Repository files navigation

ggvega

CRAN status Lifecycle: experimental Travis build status

The goal of ggvega is to translate a ggplot2 object to a Vega-Lite specification.

library(ggvega)
#> Welcome to ggvega; this package is not yet fully functional, and is under active development.
library(ggplot2)

p <- 
  ggplot(iris) + 
  geom_point(aes(x = Petal.Width, y = Petal.Length, colour = Species))

as_vegaspec(p)

Important Note

This package is in an extremely experimental state, under very active development.

At present, we can translate:

  • geom_point()
  • aesthetics: x, y, colour
  • unit-plots; no facetting.

We have plans to expand this capability; presently, we are working out a system to add new capabilities quickly and reliably.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("vegawidget/ggvega")

About

Translator from 'ggplot2' to 'Vega-Lite'

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •