hciconarray: Shortcut to make icon arrays charts

Description Usage Arguments Examples

View source: R/hchart-shorcuts.R

Description

Shortcut to make icon arrays charts

Usage

1
hciconarray(labels, counts, rows = NULL, icons = NULL, size = 4, ...)

Arguments

labels

A character vector

counts

A integer vector

rows

A integer to set

icons

A character vector same length (o length 1) as labels

size

Font size

...

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
hciconarray(c("nice", "good"), c(10, 20))

hciconarray(c("nice", "good"), c(10, 20), size = 10)

hciconarray(c("nice", "good"), c(100, 200), icons = "child")

hciconarray(c("car", "truck", "plane"), c(75, 30, 20), icons = c("car", "truck", "plane")) %>%
  hc_add_theme(
    hc_theme_merge(
      hc_theme_flatdark(),
      hc_theme_null(chart = list(backgroundColor = "#34495e"))
    )
  )

highcharter documentation built on July 26, 2020, 9:07 a.m.