ACF情节标题改变?

时间:2017-03-31 23:35:23

标签: r plot time-series correlation

我希望更改这个简单的acf绘图会创建的标题,但我不确定该怎么做,因为它默认为变量名d.sales2

AutoCorrelation <- acf(d.sales.2)
plot(AutoCorrelation)

非常感谢

赛义夫

1 个答案:

答案 0 :(得分:3)

答案去了AkselA。在main中使用acf自变量,如下所示:

# Simulation
d.sales.2 <- freeny$y

# Plotting
AutoCorrelation <- acf(d.sales.2, plot = FALSE)
plot(AutoCorrelation, main = "Freeny's Quarterly Revenue Time Series ACF")

输出: Times Series