https://github.com/eliocamp/sparkbars
https://github.com/eliocamp/sparkbars
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eliocamp/sparkbars
- Owner: eliocamp
- Created: 2019-04-13T23:51:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-19T04:22:37.000Z (about 7 years ago)
- Last Synced: 2025-02-14T13:40:41.957Z (over 1 year ago)
- Language: R
- Size: 23.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
tidy = FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# sparkbars
A purposedly simple implementation of sparkbars that can plot negative and
positive values.
## Installation
sparkbars is not con CRAN yet, but you can install the developement version
from GitHub with:
```r
remotes::install_github("eliocamp/sparkbars")
```
## Example
```{r example}
library(sparkbars)
set.seed(1)
x <- rnorm(10)
sparkbars(x, color = TRUE)
```
Doesn't work with knitr.
Inline:
`r sparkbars(x)`
Looks horrible