r - 在R中设置highcharter柱形图列的粗细
问题描述
我想知道是否有一种方法可以在 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))
推荐阅读
- html - 图片后不显示文字
- .htaccess - mod_rewrite:替换下划线导致无限循环
- c++ - 如何将原始音频数据写入使用 Alsa Driver C++ 捕获的文件
- ios - 使用 Swift 离开视图控制器后自动关闭
- mqtt - MQTT 通配符订阅、背压和 QOS
- c# - 即使 Killed 和 Disposed(在 Linux 上),C# 启动进程也会泄漏内存
- c++ - 单步执行循环时的gdb怪异
- python - 如何在 Discord.py Rewrite 中使用 JSON 操作显示排行榜?
- regex - Uipath 正则表达式:具有相同单词的多行,抓取直到第一次出现的行
- recaptcha - 将验证码导出到移动应用程序