R编程-在绘图上使用自定义包ggfortifty
嗨,我在R中创建了一个时间序列,并使用GGfortify使它看起来很漂亮 它使用了一个名为autoplot的函数,我希望为它更改轴和标题名称,但我不确定如何更改R编程-在绘图上使用自定义包ggfortifty,r,graph,time-series,R,Graph,Time Series,嗨,我在R中创建了一个时间序列,并使用GGfortify使它看起来很漂亮 它使用了一个名为autoplot的函数,我希望为它更改轴和标题名称,但我不确定如何更改 salesARMAplot <-arima(sales, order = c(1,1,1)) FinalForecast <-forecast(sales, x=banter, y= banter,ARMAplot,h=8) autoplot(FinalForecast) salesARMAplot尝试在autoplot函
salesARMAplot <-arima(sales, order = c(1,1,1))
FinalForecast <-forecast(sales, x=banter, y= banter,ARMAplot,h=8)
autoplot(FinalForecast)
salesARMAplot尝试在autoplot函数中使用以下参数
xlab = "x_label",
main = "title",
ylab = "y_label"
尝试在autoplot函数中使用以下参数
xlab = "x_label",
main = "title",
ylab = "y_label"
您可以像普通ggplot对象一样添加到它:
autoplot(FinalForecast) + ggtitle("Forecast Title") + labs(x = "New Time")
您可以像普通ggplot对象一样添加到它:
autoplot(FinalForecast) + ggtitle("Forecast Title") + labs(x = "New Time")