The goal of d3tm is to generated a zoomable treemap capable of handling unbalanced hierachical data.
You can install the development version of d3tm from GitLab with:
devtools::install_git("https://gitlab.com/lajh87/d3tm.git")
This is a basic example which shows you how to solve a common problem:
library(d3tm) ztm()