I have sample code where I generated a tree map. But there are few drawbacks, the values are not seen when the user clicks on it. Also, there are links in the dataframe. So when the user clicks on specific block, the respective url has to be opened
library(treemap)
asd <- data.frame(ColA = c("Cat1", "Cat2"), ColB = c(12,14), ColC = c("<a href = 'https://www.google.co.in/'>google</a>","<a href = 'https://www.amazon.co.in/'>amazon</a>" ))
treemap(asd,index="ColA",vSize="ColB",type="index")