【发布时间】:2017-01-03 19:35:14
【问题描述】:
library(plotly)
对于这个数据:
exDT2 <- structure(list(outflow = c(-150, -195, -200, -200, -200, -200,
-250, -250, -250, -250, -255, -300, -300, -300, -300, -300, -305,
-305, -350, -350, -400, -400, -435, -450, -450, -450, -450, -450,
-455, -455, -464, -470, -470, -500, -500, -500, -500, -500, -500,
-5000)), .Names = "outflow", row.names = c(NA, -40L), class = c("data.table",
"data.frame"))
plot_ly(exDT2, x = ~-outflow, type = "histogram") %>% layout(xaxis = list(title = "Title", type = "log"))
plot_ly(exDT2, x = ~log(-outflow), type = "histogram") %>% layout(xaxis = list(title = "Title"))
也就是说,我希望箱子的宽度呈指数增长,但使用对数轴(这样箱子看起来宽度相同),并带有有用的轴标签,而不仅仅是显示对数美元
【问题讨论】:
-
对否决票有任何反馈吗?