How to make rolling mean line plot of stock data

In this post we will learn how to make a moving average line plot of stock data, a great example of time series data. rolling_mean() function in zoo package can compute moving average of data of interest over a window size. For example, if we want to compute 7-day moving average, we will use the… Continue reading How to make rolling mean line plot of stock data

Exit mobile version