【发布时间】:2017-05-18 15:06:11
【问题描述】:
我想增加plotly 水平条形图的 Y 轴宽度。现在,由于 y 轴太窄,文本落在了绘图中。
您可以在 Plotly 的 examples 页面上看到同样的情况,其中的类别很简单,不太可读。
我找不到增加宽度的方法。非常感谢您的帮助!
示例代码:
library(plotly)
p <- plot_ly(x = c(20, 14, 23),
y = c('long string which is not readable',
'orangutans (not readable)',
'monkeys'),
type = 'bar',
orientation = 'h')
【问题讨论】:
-
这应该是可能的,因为它在他们的 UI 中:help.plot.ly/axes/#step-8-axis-width