Skip to contents

Shortcut to make spkarlines

Usage

hcspark(x = NULL, type = NULL, ...)

Arguments

x

A numeric vector.

type

Type sparkline: line, bar, etc.

...

Additional arguments for the data series https://api.highcharts.com/highcharts/series.

Examples


set.seed(123)
x <- cumsum(rnorm(10))

hcspark(x)
#> Warning: Use type 'hc_theme_sparkline' or hc_theme_sparkline_bv theme instead.
hcspark(x, "columnn") #> Warning: Use type 'hc_theme_sparkline' or hc_theme_sparkline_bv theme instead.
hcspark(c(1, 4, 5), "pie") #> Warning: Use type 'hc_theme_sparkline' or hc_theme_sparkline_bv theme instead.
hcspark(x, type = "area") #> Warning: Use type 'hc_theme_sparkline' or hc_theme_sparkline_bv theme instead.