我想知道是否有一种方法可以在R中设置柱形图的高字符列的厚度。
library(highcharter)
pokemon%>%
count(type_1)%>%
arrange(n)%>%
hchart(type = "column", hcaes(x = type_1, y = n))
答案 0 :(得分:1)
您可以使用pointWidth选项:
pokemon%>%
count(type_1)%>%
arrange(n)%>%
hchart(type = "column", hcaes(x = type_1, y = n)) %>%
hc_plotOptions(column = list(pointWidth = 100))