0
我剛開始學習[R和策劃直方圖有這樣的問題:簡單直方圖繪製問題
我沒設置如下樣本數據:
B <- c(2, 4, 5, 7, 12, 14, 16)
hist(B) # this plots histogram
但是,當添加額外的參數,如
hist(B, col = "red", breaks=6, xlim=c(0, max), main="My Histogram", las=2, xlab="Values")
這裏添加PARAMS時,我得到的錯誤:
xlab = "Values") Error: unexpected ')' in "xlab = "Values")"
感謝初學者的幫助。
謝謝Aaron。它在刪除xlim參數後有效。 – DP8
我很高興工作。如果你能把我的答案標記爲接受,那將會幫助我做出很多事情。謝謝。 – Puddlebunk