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/Simpl...
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
• GGPLOT charts and charts and charts ...
Subscribe: https://www.youtube.com/c/TechAnswers...