plot_ecc: Plot yearly ECC time-series (highcharts)

View source: R/highcharts.R

plot_eccR Documentation

Plot yearly ECC time-series (highcharts)

Description

Plot yearly ECC time-series (highcharts)

Usage

plot_ecc(
  data,
  title = "Historical Claim Costs across Perils",
  subtitle = "As percent of limit, 2001-2019 average ECC",
  ...
)

Arguments

data

output of wc_ecc

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),
  ecc_dr = sample(1:100/100, 5*20, replace=T),
  ecc_xs = sample(1:100/100, 5*20, replace=T),
  ecc_tp = sample(1:100/100, 5*20, replace=T),
  weight = sample(1:100/100, 5*20, replace=T)
  )
plot_ecc(data)


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