plot_wheel: Plot dependency wheel (highcharts)

plot_wheelR Documentation

Plot dependency wheel (highcharts)

Description

Plot dependency wheel (highcharts)

Usage

plot_wheel(data, unit = NA, colors = pal, icons = NA, rot = 180, subtitle, ...)

Arguments

data

data.table with columns from, to, weight, color and icon (e.g. "tint")

unit

display unit

colors

ordered color palette

icons

named vector of icon names

rot

start angle

subtitle

chart subtitle

...

Arguments passed on to hc_themed

hc

a highchart object

title

chart title

label

optional annotation

base_font

default font for all chart elements

axes

show axes (default: TRUE)

exporting

include chart export menu (default: TRUE)

credits

include credits (default: FALSE)

Examples

dt <- fread("
  from, to, weight
  sector 1, sector 2, 22
  sector 1, sector 3, 40
  sector 1, sector 4, 60
  sector 2, sector 3, 50
")

plot_wheel(dt)


mbacou/WADashboard documentation built on Jan. 3, 2023, 6:21 p.m.