Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/netbek/plover

An approach to using Vega in R Markdown
https://github.com/netbek/plover

dataviz javascript r rmarkdown vega vega-lite vega-lite-spec

Last synced: 8 days ago
JSON representation

An approach to using Vega in R Markdown

Awesome Lists containing this project

README

        

# Plover

An approach to using Vega in R Markdown.

## Examples

[netbek.github.io/plover](https://netbek.github.io/plover)

## Installation

1. Install system dependencies:

```
sudo apt-get install build-essential curl g++ gcc python-dev
```

2. Install NVM and Node 8.x:

```
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.bashrc
nvm install v8.9.4
nvm alias default v8.9.4
```

3. Install Node dependencies:

```
cd /path/to/plover
npm install
```

4. Install R dependencies:

```
install.packages(c("jsonlite", "purrr", "rmarkdown"))
```

## Usage

To get started, open `/vega/index.Rmd` in RStudio.

A Vega-Lite spec can be supplied in long-form, or generated with [Finch](https://github.com/netbek/finch), as done in this example.

A global theme is stored in `/vega/theme.json`. Remember to knit the document after making changes.

## Resources

* [Finch](https://github.com/netbek/finch) - Vega-Lite specification generator
* [Vega-Lite: specifications](https://vega.github.io/vega-lite/docs/spec.html)
* [Vega-Lite: theme configuration](https://vega.github.io/vega-lite/docs/config.html)

## Other solutions

* [hrbrmstr/vegalite](https://github.com/hrbrmstr/vegalite) - Write Vega-Lite specs in R
* [mdequeljoe/vl](https://github.com/mdequeljoe/vl) - Write Vega-Lite specs in R
* [ijlyttle/altair](https://github.com/ijlyttle/altair) - R interface to Altair (Python)

## License

Copyright (c) 2018 Hein Bekker. Licensed under the GNU Affero General Public License, version 3.