How to Calculate Autocorrelation in R - Statology
www.statology.org › autocorrelation-in-rOct 17, 2020 · We can plot the autocorrelation function for a time series in R by simply not using the pl=FALSE argument: #plot autocorrelation function acf (x) The x-axis displays the number of lags and the y-axis displays the autocorrelation at that number of lags. By default, the plot starts at lag = 0 and the autocorrelation will always be 1 at lag = 0.