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 the package from CRAN:

install.packages("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 May 16, 2019, 4:16 p.m.