| plot_idx | R Documentation |
Plot yearly index time series with EMA trends (highcharts)
plot_idx( data, title = "Index Trend", subtitle = "Average across portfolio locations with EMA trend, 1990-2020 (mm)", label = NULL, rowheight = 280, ncol = 1, ... )
data |
output of wc_trg_*, see examples |
title |
chart title |
subtitle |
chart subtitle |
label |
optional annotation |
rowheight |
Height in px. |
ncol |
how many columns in the grid |
... |
Arguments passed on to
|
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,
ecc = rnorm(31*3*2, .5)
)
plot_idx(dt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.