これが私のデータファイルです (update 2021: link is dead... http://s.yunio.com/87HT7f )。ダウンロードして mydata として保存してください。
y<-scan("mydata")
hist(y,breaks=c(0,60,70,80,90,100),freq=TRUE)
axis(2,at=seq(0,20,length.out=5),labels=c(0,5,10,15,20))
2 つの問題があります。
1.Warning message:
In plot.histogram(r, freq = freq1, col = col, border = border, angle = angle, :
the AREAS in the plot are wrong -- rather use freq=FALSE
確率ではなく頻度、y軸でカウントされた時間、警告メッセージを消す方法が必要ですか?
2.実行時
axis(2,at=seq(0,20,length.out=5),labels=c(0,5,10,15,20))
20
y 軸にはありません。