How do I omit labels in the R treemap?

前端 未结 2 961
感情败类
感情败类 2021-01-25 10:41

I\'ve been using the R treemap package and I have a treemap that\'s 2 levels deep. I want the second level labels to be printed but not the first.

Using the example in t

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-25 11:33

    Another option would consist in nullifying the size font the fonts you want to see disappear. For instance,

    tmPlot(GNI2010,
           index=c("continent", "iso3"),
           vSize="population",
           vColor="GNI",
           type="value",
           fontsize.labels=c(0,10))
    

    will only display the initial for the countries, not for the continents.

提交回复
热议问题