Treemap package in R: use different palettes for the first index parameter and shadow for the vColor variable

Treemap package in R seems to have more features than the Treemap function in the portfolio package. However, from the reference manual (which is very good, by the way), it does not become clear whether it is possible to use different color palettes for the first index and use a hue (from almost white to a certain color) of the color to display the second index term ( vColor ). I'm for something like this: http://visualrevenue.com/media/uploaded_images/news-aggregation-treemap.jpg

As an example, I would like to have continents with different colors (blue, green, red, etc.), while color shading for GNI would be universal (for example, in alpha scale). An example is provided from the reference guide.

 data(GNI2010) # create treemap tmPlot(GNI2010, index=c("continent", "iso3"), vSize="population", vColor="GNI", type="value") 

Is this possible in the current Treemap package Treemap or does it need basic tmPlot code tmPlot ?

0
source share
1 answer

I really like your idea.

Unfortunately, this is not possible in the current version. However, of course, it is possible to implement it in tmPlot, although it is not easy (but also not so difficult). I will add a todo list for the next update.

+2
source

All Articles