R中设置highcharter column图表列的粗细

Set the thickness of highcharter column chart columns in R

不知道有没有办法在R中设置柱状图highcharter柱的粗细

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

您可以使用 pointWidth 选项:

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