Hovering values and enable links when the user clicks on tree map blocks

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")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.