A correlogram is simply a plot of the autocorrelation function for sequential values of lag k= 0,1,2,…,n. It allows us to see the correlation structure in each lag. The correlogram can be plotted in R using the acf () function.
Example 1: The correlogram for a sequence of normally distributed random variables can be plotted in R using the acf() function. The full R code is as follows: > set.seed(1) > w <- rnorm(100) > w > acf(w)