-1
library(plotly)
とヒストグラム:は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"))
が、のように見えるのビンと同じように見ているx軸ラベルでplotlyグラフにしたいです
plot_ly(exDT2, x = ~log(-outflow), type = "histogram") %>% layout(xaxis = list(title = "Title"))
つまり、ビンを指数関数的に増加させるが、対数軸(ビンは同じ幅で表示されるようにする)と便利な軸ラベルを使用して、log-dollarsを表示するのではなく、
これはplotly
で行うことができる場合
が追加されました。 – hedgedandlevered
downvoteについてのフィードバックはありますか? – hedgedandlevered