Boxplot yearly ECC time-series (highcharts)
Usage
boxplot_ecc(
data,
prob = 0.95,
title = "Historical Claim Costs across Years",
subtitle = "As percent of limit, 2001-2019 average ECC with VaR line in red",
...
)
Arguments
- data
output of wc_ecc
- prob
which percentile threshold(s) to draw on charts
- title
chart title
- subtitle
chart subtitle
Examples
data <- data.table(
year = rep(2001:2020, each=5),
ecc = sample(1:100/100, 5*20, replace=T)
)
#> Error in data.table(year = rep(2001:2020, each = 5), ecc = sample(1:100/100, 5 * 20, replace = T)): could not find function "data.table"
boxplot_ecc(data)
#> Error in .(prob = prob, ecc = quantile(ecc, prob, na.rm = T)): could not find function "."