Recently, I updated Open Trade Statistics to include 2023 data derived from UN Comtrade.
While the data update was straightforward, I took the opportunity to revamp the dashboard using Tabler for R to enhance the user interface and D3po for interactive visualizations. One of the things I worked on, because I maintain both packages, was to ensure that building treemaps with D3po was as simple as possible.
Here is a screenshot of the updated dashboard:
Country profile: United Kingdom
Product profile: Machinery and mechanical appliances
While Highcharts requires a sophisticated code to render nested treemaps as an end user, D3po makes it easy with the po_treemap() function and moves the complexity to the package internals.
Here is an example of how to create a nested treemap with D3po (clicable):