r - How to improve the aspect of ggplot histograms with log scales and discrete values - Stack Overflow
グラフのX軸で、log(x+1)とする。
r - How to improve the aspect of ggplot histograms with log scales and discrete values - Stack Overflow
の回答の Jaapさんのグラフ。
$ scale_x_continuous(breaks=c(0,1,2,3,4,5,10,30,100,300,1000), trans="log1p", expand=c(0,0)) +
trans="log1p"を使う。  python版の ggplotにはない。 x=log(x+1)とすれば、形状は作れるが、axisの表記が 10^2とかになってしまう。
https://gyazo.com/7aa68886752a30ab2cbaea9e731f72e9
棒グラフになるようなところを、連続グラフにして、X軸の片対数グラフ
ヒストグラムのbinの範囲を対数で区切る
#ggplot #visualization #rlang
#histogram
対数正規分布