sparkbars: Prints sparkbars from the data

Description Usage Arguments Examples

View source: R/spark_bars.R

Description

Prints sparkbars from the data

Usage

1
sparkbars(x, midpoint = 0, colors = FALSE, range = TRUE)

Arguments

x

a vector with the data to plot.

midpoint

midpoint that marks the "zero" line.

colors

whether to use colors or not.

range

whether to print the range.

Examples

1
2
3
4
5
6
7
x <- rnorm(10)
sparkbars(x, colors = TRUE)
sparkbars(x, midpoint = 1, colors = TRUE)

# NAs are indicated.
x[c(3, 6)] <- NA
sparkbars(x)

eliocamp/sparkbars documentation built on May 7, 2019, 8:21 a.m.