我正在嘗試創建一個histogram與此相同的
我的csv檔案包含 2 個columns名為Value & Count。我找到了類似的
uj5u.com熱心網友回復:
使用像這樣的包scales,ggplot2你可以試試這個:
ggplot(k,aes(y=Count,x=Value)) geom_histogram(stat="identity") scale_y_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x)))
您可以隨意使用xlab和ylab功能更改軸標簽
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/313612.html
