If you trust this link, click it to continue.
https://shkspr.mobi/blog/2021/06/animated-treemaps-in-r-the-hard-way/