Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jonocarroll/sparklines

Example Wrapping of react-sparklines
https://github.com/jonocarroll/sparklines

Last synced: 8 days ago
JSON representation

Example Wrapping of react-sparklines

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
library(sparklines)
```

# sparklines

Following the excellent {[reactR][reactR]} [tutorial][reactR vignette] on wrapping a React library, namely [react-sparklines][react-sparklines].

## Example

This is successful, and produces a nice sparkline

``` r
sparklines(rnorm(10), sparklinesLine())
```

![](man/figures/README-sparklines.png)

More could be wrapped, but this was a nice proof-of-concept.

[react-sparklines]: https://github.com/borisyankov/react-sparklines
[reactR vignette]: https://react-r.github.io/reactR/articles/intro_htmlwidgets.html
[reactR]: https://github.com/react-R/reactR/