Search code examples
rr-highcharter

Set the thickness of highcharter column chart columns in R


I wonder if there is a way to set the thickness of a highcharter columns of a column chart in R.

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

Solution

  • You can use the pointWidth option:

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