Learn R Programming

sparkline (version 2.0)

sparkline: Interactive Sparklines

Description

Create interactive sparklines for inline visualization.

Usage

sparkline(values, ..., width = 60, height = 20, elementId = NULL, renderSelector = NULL)

Arguments

values
vector of values to visualize
...
additional options passed to jquery.sparkline; see jquery.sparkline docs
height, width
height and width of sparkline htmlwidget specified in any valid CSS size unit.
elementId
string id as a valid CSS element id.
renderSelector
string as CSS selector to render in a DOM element other than the htmlwidget container