Back to Browse

[R Beginners] Calculate and plot moving average in GGplot. [Code included]

7.0K views
Jul 20, 2020
5:42

Learn to get historic prices of any stock from yahoo finance, calculate moving averages and then plot the prices and the moving averages in a ggplot line chart. Code https://rpubs.com/techanswers88/SimpleMovingAverage The script has been made generic, so that you simply change the ticker symbol of a stock and the date period to get the data and plot the chart of the stock you want. Other data visualisation videos https://youtube.com/playlist?list=PLkHcMTpvAaXV6Eg5ZHbcT2tA9-QnhJrIa Subscribe: https://www.youtube.com/c/TechAnswers88?s_confirmation=1

Download

0 formats

No download links available.

[R Beginners] Calculate and plot moving average in GGplot. [Code included] | NatokHD