大小autoplot(ggfortify)不起作用

时间:2018-02-24 00:25:29

标签: r ggplot2 ggfortify

我正在尝试调整自动映射中的行的size,以获得一个简单的图表,但是对于两行它不起作用,不知道如何解决它。

library(ggfortify);library(forecast)
autoplot(AirPassengers, ts.colour = "blue", size = 2) + theme_light()
d.arima <- auto.arima(AirPassengers)
d.forecast <- forecast(d.arima, level = 10, h = 50)
autoplot(cbind(Ajustado = fitted(d.arima),Original = AirPassengers), size = 2) + labs(y = "") + theme_light()

第二行代码工作size,但在最后一行中它不是

1 个答案:

答案 0 :(得分:3)

论证size适用于ggfortify:::autplot.ts

ggfortify:::autoplot.ts(cbind(Ajustado = fitted(d.arima),
                              Original = AirPassengers), size = 2, facets=F) + 
labs(y = "") + theme_light()

enter image description here