Plot index density (highcharts)
Usage
plot_idx_density(
data,
title = "Index Density Distribution",
subtitle = "Across portfolio locations, 1990-2020 (mm)",
rowheight = 280,
ncol = 1,
...
)
Arguments
- data
output of
wc_trg_*
- title
chart title
- subtitle
chart subtitle
- rowheight
Height in px.
- ncol
how many columns in the grid
- ...
Arguments passed on to
hc_themed
hc
a highchart object
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 <- data.table(
loc_id = 1:3,
period = rep(c("prd_1", "prd_5"), 3),
year = rep(1990:2020, each=3*2),
idx = rnorm(31*3*2, 10),
idx_lo = 8,
idx_hi = 12
)
#> Error in data.table(loc_id = 1:3, period = rep(c("prd_1", "prd_5"), 3), year = rep(1990:2020, each = 3 * 2), idx = rnorm(31 * 3 * 2, 10), idx_lo = 8, idx_hi = 12): could not find function "data.table"
plot_idx_density(dt)
#> Error in deparse(...): unused argument (by = "period")