plot_idx_density: Plot index density (highcharts)

plot_idx_densityR Documentation

Plot index density (highcharts)

Description

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
)
plot_idx_density(dt)


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