knitr::opts_chunk$set( comment = "##>", tidy = FALSE, error = FALSE)
This is an R port of spark.sh.
The spark.sh wiki has some cool usage examples.
Install it from github, with the
The R package has some improvements compared to the original shell implementation.
The length of the spark line can be fitted to the width of the teminal window:
spark(lynx, width = "auto")
Matrices can be plotted row-wise:
spark(t(EuStockMarkets), width="auto", common_scale = FALSE)
spark(lh, max = crayon::red)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.