2
我無法在每個面上製作帶有三條線的多面自動繪圖; 我的目標是繪製來自5個不同站的平均,最高和最低溫度;面將是車站和線路的溫度,我嘗試這樣做:使用autoplot動物園的多面圖和多線圖
autoplot.zoo(apply.quarterly(new_temp1[,c(7:14)], colMeans)) +
geom_line(col="red") +
geom_line(aes(apply.quarterly(new_temp2[,c(7:14)], colMeans)))
但是卻對我說:
Error in order(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, :
argument 3 is not a vector
In addition: Warning message:
In (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
row names were found from a short variable and have been discarded
非常感謝,我給它一個嘗試,讓我們來看看,如果我能得到它與XTS工作 –