-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.Rmd
57 lines (40 loc) · 1.43 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
dev = "svg"
)
```
# ggvega
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/ggvega)](https://cran.r-project.org/package=ggvega)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Travis build status](https://travis-ci.org/vegawidget/ggvega.svg?branch=master)](https://travis-ci.org/vegawidget/ggvega)
<!-- badges: end -->
The goal of **ggvega** is to translate a ggplot2 object to a Vega-Lite specification.
```{r example}
library(ggvega)
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](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("vegawidget/ggvega")
```