Skip to contents

Plot dependency wheel (highcharts)

Usage

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

Arguments

data

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

unit

display unit

colors

ordered color palette

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

plot_wheel(dt)
#> Error in `:=`(from = sprintf("<span><i class=\"fa fa-%s fa-lg\"></i><br/>%s</span>",     icons[from], toupper(from)), to = sprintf("<span><i class=\"fa fa-%s fa-lg\"></i><br/>%s</span>",     icons[to], toupper(to))): Check that is.data.table(DT) == TRUE. Otherwise, := and `:=`(...) are defined for use in j, once only and in particular ways. See help(":=").