I already do sliding window in order to calculate some parameters of networks. In this case, I'm working with a financial network based in daily returns of 140 companies.
I already have all my calculations, but when I plot my results I obtain the number of sliding movements ("Sliding Steps") in my x-axis, but instead of steps I need years in my x-axis.
In order to change the values of x-axis, I applied the same procedure ("sliding window") but in this case, only for a vector of years and then I calculated the "mode" of each "window" I obtain a 1124 x 1 array that contains the years of each window. How i can change those "steps" by "years" in the array?