sparkline: Sparkline htmlwidget

Description Usage Arguments Examples

View source: R/sparklines.R

Description

A sparkline htmlwidget using the nifty jQuery Sparklines library (http://omnipotent.net/jquery.sparkline)

Usage

1
2
sparkline(values, chart_type = "line", config = list(), width = 100,
  height = 20)

Arguments

values

A vector of values

chart_type

The chart type: one of 'line' (default), 'bar', 'tristate', 'discrete', 'bullet', 'pie' or 'box'

config

A named list of options as can be found on http://http://omnipotent.net/jquery.sparkline/#s-docs

Examples

1
sparkline(c(1,2,-1,0,-1,-2,4,5,6), "bar", list(fillColor="white"))

Bart6114/sparklines documentation built on May 5, 2019, 10:27 a.m.