Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/netbek/plover
- Owner: netbek
- License: agpl-3.0
- Created: 2018-04-25T15:35:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:35:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T08:25:11.612Z (21 days ago)
- Topics: dataviz, javascript, r, rmarkdown, vega, vega-lite, vega-lite-spec
- Language: HTML
- Homepage: https://netbek.github.io/plover
- Size: 5.54 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.