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

https://github.com/eliocamp/sparkbars


https://github.com/eliocamp/sparkbars

Last synced: 9 months ago
JSON representation

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