在预测包中使用 autoplot() 时如何控制线条大小
How to control line size when working with autoplot() in the forecast package
我习惯在ggplot
中控制geom_line(size=1)
中的行号。我似乎无法在 forecast
包中的 autoplot()
函数中找到控制线宽的方法,例如,给定以下代码,如何使线宽变粗?
> library(forecast)
> d.arima <- forecast::auto.arima(AirPassengers)
> autoplot(forecast::forecast(d.arima, h = 10))
这是一个使用ggfortify
的解决方案
library(ggfortify)
autoplot(forecast::forecast(d.arima, h = 10), predict.size = 3, size = 2)
我习惯在ggplot
中控制geom_line(size=1)
中的行号。我似乎无法在 forecast
包中的 autoplot()
函数中找到控制线宽的方法,例如,给定以下代码,如何使线宽变粗?
> library(forecast)
> d.arima <- forecast::auto.arima(AirPassengers)
> autoplot(forecast::forecast(d.arima, h = 10))
这是一个使用ggfortify
library(ggfortify)
autoplot(forecast::forecast(d.arima, h = 10), predict.size = 3, size = 2)