2016-03-27から1日間の記事一覧

ggplot2の軸を上付きのべき乗で書きたい

R

そういうことです。今のところの私の答えは以下で breaksでちゃんとX軸のどれを書くかを指定 trans_formatでべき乗表示に変換 です。 ggplot(data=data.frame(x=10^(1:4), y=1:4), aes(x=x, y=y)) + scale_x_log10(breaks=10^(1:4), labels=trans_format('lo…