1
Iam對於R來說比較新,並且無法自己弄清楚。R:如何乘以頻率直方圖的X軸和Y軸
我有一個頻率直方圖,我試圖將每個箱(Y軸)的頻率乘以X軸上的值。
的代碼爲我的直方圖是這樣的:
logarea <- log10(wildfires$areacalc) #to make x-axis logarithmic
hist(logarea, breaks="FD", main="Frequency of Fire Size", xlab="Log10 of Area Burned [m2]",
yaxt="n",xlim=c(5,10), cex.main=0.8, cex.axis=0.8, cex.lab=0.75, col="grey47", border = "seashell3")
axis(2, at=seq(0, 1100, by = 200), las = 2, cex.axis=0.8)
謝謝!