Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R编程-在绘图上使用自定义包ggfortifty_R_Graph_Time Series - Fatal编程技术网

R编程-在绘图上使用自定义包ggfortifty

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函

嗨,我在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函数中使用以下参数

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")