I really like echarts4r and I would like to be able to use it for building a 2D choropleth map. My issue is that it looks like echarts4r can only do this with a predefined set of regions/areas. In particular, I would like to map the UK split by county, and also London split by borough, and neither of these are in the predefined set used by echarts4r. (The UK is split into England, Wales, Northern Ireland, and Scotland but not into counties.)
For reference, the function I'm looking at is echarts4r::e_map and I'm also seeing the existing predefined area data sets in the Github page for echarts4r.maps.
It's also worth mentioning that the geometry data I have for the regions/areas is a column of class sfc containing simple features data. I'm currently using this with ggplot2::geom_sf.
Thanks!