sparkline: Generate sparkline graphic

Description Usage Arguments Value See Also Examples

View source: R/sparkline.R

Description

sparkline takes a vector of type numeric and generates a simple sparkline graphic.

Usage

1
sparkline(x, min = 0, max = 1)

Arguments

x

A vector object, pertaining to a row from a tabular display.

min

Numeric input, specifying the minimum value for the y-axis

max

Numeric input, specifying the maximum value for the y-axis

Value

A ggplot2 graphic object.

See Also

SimDisplay

Examples

1
2
3
4
5
6
## Not run: 
data(Brown1974)
sparkline(Brown1974[1,4:9])
sparkline(Brown1974[64,4:9])

## End(Not run)

mattsigal/SimDisplay documentation built on May 21, 2019, 1:25 p.m.