knitr::opts_chunk$set(
  comment = "##>",
  tidy = FALSE,
  error = FALSE)

Linux Build Status Windows Build status CRAN RStudio mirror downloads Coverage Status

spark

This is an R port of spark.sh.

The spark.sh wiki has some cool usage examples.

Installation

Install it from github, with the devtools package:

devtools::install_github("gaborcsardi/spark")
library(spark)

Enhancements

The R package has some improvements compared to the original shell implementation.

Scaling

The length of the spark line can be fitted to the width of the teminal window:

spark(lynx, width = "auto")

Matrices

Matrices can be plotted row-wise:

spark(t(EuStockMarkets), width="auto", common_scale = FALSE)

Marking minima and maxima

spark(lh, max = crayon::red)


gaborcsardi/spark documentation built on July 26, 2017, 10:09 a.m.