https://github.com/kcf-jackson/sketch
Interactive sketches in R
https://github.com/kcf-jackson/sketch
javascript js r transpiler visualisation
Last synced: 6 months ago
JSON representation
Interactive sketches in R
- Host: GitHub
- URL: https://github.com/kcf-jackson/sketch
- Owner: kcf-jackson
- License: other
- Created: 2019-11-16T06:36:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-17T18:38:52.000Z (almost 2 years ago)
- Last Synced: 2025-06-03T04:56:28.523Z (6 months ago)
- Topics: javascript, js, r, transpiler, visualisation
- Language: HTML
- Homepage: https://kcf-jackson.github.io/sketch-website/
- Size: 1.69 MB
- Stars: 125
- Watchers: 8
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: readme.Rmd
- License: LICENSE.md
Awesome Lists containing this project
- awesome-shiny-extensions - sketch - Creates static / animated / interactive visualizations embeddable in R Markdown documents and Shiny. Implements an R-to-JavaScript transpiler and enables users to write JavaScript applications using the syntax of R. (Visualization / General-Purpose)
- jimsghstars - kcf-jackson/sketch - Interactive sketches in R (HTML)
README
---
output: rmarkdown::github_document
---
## R package `sketch`
[](https://travis-ci.org/kcf-jackson/sketch)
[](https://codecov.io/gh/kcf-jackson/sketch?branch=master)
[](https://CRAN.R-project.org/package=sketch)
Creates interactive illustrations embeddable in R Markdown documents. The package compiles R code into JavaScript code by applying rewriting rules to the R AST. This allows users to develop JS-style visualisations using only the R syntax.

### Installation
```{r, eval = FALSE}
# Stable version on CRAN
install.packages("sketch")
# For the development version
# install.packages("remotes")
remotes::install_github("kcf-jackson/sketch")
```
Visit the [website](https://kcf-jackson.github.io/sketch-doc) for [getting-started guide](https://kcf-jackson.github.io/sketch-doc/getting_started/), [tutorials](https://kcf-jackson.github.io/sketch-doc/tutorials/) and other documentation!