指定xaxis的布局對我有用:
plot_ly(x = c(1, 2,3,4,5,6,7,8,9,10,'>10'),
y = c(5, 11, 23,14,21,18,20,19,12,31,21),
name = "dd",
type = "bar",
xaxis = list(title ="tr"),
yaxis = list(title = "cc")) %>%
layout(title = "Features",
xaxis = list(type = "category",
title = "tr"),
yaxis = list(title = "cc"))