plot_ecc | R Documentation |
Plot yearly ECC time-series (highcharts)
plot_ecc( data, title = "Historical Claim Costs across Perils", subtitle = "As percent of limit, 2001-2019 average ECC", ... )
data |
output of wc_ecc |
title |
chart title |
subtitle |
chart subtitle |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.