2017-10-04 85 views
0

我習慣於在geom_line(size=1)ggplot中控制行大小。我似乎無法找到控制forecast軟件包中的autoplot()函數中的行大小的方法。例如,給定以下代碼,如何才能使行大小變粗?如何在預測包中使用autoplot()時控制行大小

> library(forecast) 
> d.arima <- forecast::auto.arima(AirPassengers) 
> autoplot(forecast::forecast(d.arima, h = 10)) 

回答

1

這裏是使用溶液ggfortify

library(ggfortify) 
autoplot(forecast::forecast(d.arima, h = 10), predict.size = 3, size = 2) 

enter image description here

相關問題