有没有办法从r中的highcharter更改树图中的活动颜色

时间:2017-09-13 13:12:01

标签: r treemap r-highcharter

当鼠标悬停在可以向下钻取的部分上时,有没有办法在highcharter中更改树形图的活动部分的颜色? 我似乎找不到合适的命令。

hctreemap2(data = M,
           group_vars = c("Order", "Family","Species"),
           size_var = "n",
           color_var = "n",
           layoutAlgorithm = "squarified",
           levelIsConstant = FALSE,
           levels = list(
             list(level = 1, dataLabels = list(enabled = F)),
             list(level = 2, dataLabels = list(enabled = F)),
             list(level = 3, dataLabels = list(enabled = T))
           )) %>% 
  hc_colorAxis(minColor = brewer.pal(9, "Blues")[4],
               maxColor = brewer.pal(9, "Reds")[6]) %>% 
  hc_tooltip(pointFormat = "<b>{point.name}</b>:<br>
             Number Measured: {point.value:,.0f}")

提前谢谢。

0 个答案:

没有答案