Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jonocarroll/sparklines
- Owner: jonocarroll
- License: cc0-1.0
- Created: 2022-10-19T12:19:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-19T12:19:11.000Z (over 2 years ago)
- Last Synced: 2024-11-15T14:43:01.225Z (2 months ago)
- Language: R
- Size: 157 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
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/