尝试使用自动绘图绘制时间序列。可重现的例子:
library(forecast)
WWWusage %>% ets %>% forecast(h=20) -> fc
autoplot(WWWusage, series="Data") +
autolayer(fc, series="Forecast") +
autolayer(fitted(fc), series="Fitted")
Error: 'coerce' is not an exported object from 'namespace:colorspace'