在R中设置高位图表柱形图列的厚度

时间:2019-10-23 23:40:01

标签: r r-highcharter

我想知道是否有一种方法可以在R中设置柱形图的高字符列的厚度。

library(highcharter)
pokemon%>%
  count(type_1)%>%
  arrange(n)%>%
  hchart(type = "column", hcaes(x = type_1, y = n))

1 个答案:

答案 0 :(得分:1)

您可以使用pointWidth选项:

pokemon%>%
  count(type_1)%>%
  arrange(n)%>%
  hchart(type = "column", hcaes(x = type_1, y = n)) %>% 
  hc_plotOptions(column = list(pointWidth = 100))