0
我有我想把劇情代碼中的內容列表,但我也碰到這樣的錯誤:語法錯誤的R中調用列表繪圖功能
Error: object 'pl29' not found
此外,相應的代碼是:
Pl29 <- list(HMn25_29,HMn28_29)
par(mfrow=c(2,2))
for (i in pl29) {
plot(i, type = "o", pch = 22, lty = 2, col = "Black", xlab = "Hour 2007/09/29" , ylab = "Ambient Tempreture")
}
和樣本數據是:
(HMn25_29)
h avg_val
1 2007-09-29 00:00:00 -1.876667
2 2007-09-29 01:00:00 -1.693667
3 2007-09-29 02:00:00 -1.766667
4 2007-09-29 03:00:00 -1.928667
5 2007-09-29 04:00:00 -2.132581
6 2007-09-29 05:00:00 -1.752258
(HMn28_29)
h avg_val
1 2007-09-29 00:00:00 -1.922500
2 2007-09-29 01:00:00 -1.667667
3 2007-09-29 02:00:00 -1.582000
4 2007-09-29 03:00:00 -1.571667
5 2007-09-29 04:00:00 -1.829000
6 2007-09-29 05:00:00 -1.615333
R區分大小寫。檢查你的'pl29'和Pl29'的用法。 – Andrie