View source: R/hchart-shorcuts.R
hcspark | R Documentation |
Shortcut to make spkarlines
hcspark(x = NULL, type = NULL, ...)
x |
A numeric vector. |
type |
Type sparkline: line, bar, etc. |
... |
Additional arguments for the data series https://api.highcharts.com/highcharts/series. |
set.seed(123)
x <- cumsum(rnorm(10))
hcspark(x)
hcspark(x, "columnn")
hcspark(c(1, 4, 5), "pie")
hcspark(x, type = "area")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.