README.md

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:

remotes::install_github("eliocamp/sparkbars")

Example

library(sparkbars)
set.seed(1)
x <- rnorm(10)
sparkbars(x, color = TRUE)
#>   1.6 ┌  ▂ ▇▂ ▃▄▃ 
#> -0.84 └ ▆ ▅  ▅   ▇

Doesn’t work with knitr.

Inline:

[7m▆[27m, ▂, [7m▅[27m, ▇, ▂, [7m▅[27m, ▃, ▄, ▃, [7m▇[27m

Looks horrible



eliocamp/sparkbars documentation built on May 7, 2019, 8:21 a.m.