Learn R Programming

highcharter (version 0.5.0)

hcspark: Shorcut to make spkarlines

Description

Shorcut to make spkarlines

Usage

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

Arguments

x

A numeric vector.

type

Type sparkline: line, bar, etc.

...

Aditional arguments for the data series (http://api.highcharts.com/highcharts#series).

Examples

Run this code
# NOT RUN {
set.seed(123)
x <- cumsum(rnorm(10))

hcspark(x) 
hcspark(x, "column")
hcspark(c(1, 4, 5), "pie")
hcspark(x, type = "area")
   
# }

Run the code above in your browser using DataLab