filter Select Apple and save it under plotdata.Line plot Plot the relationship between time (date) and Apple stock prices (close).Scatterplot Plot the relationship between closing price and volume for Apple.Scatterplot Add the best fit line.Scatterplot Plot the relationship between closing price and volume for both Apple and Microsoft.In this exercise you will learn to plot data using the ggplot2 package. To this end, you will make your own note of 4.2 Quantitative vs. Quantitative from Data Visualization with R.
filter Select Apple and save it under plotdata.Line plot Plot the relationship between time (date) and Apple stock prices (close).Apple stock peaked in October this year.
Scatterplot Plot the relationship between closing price and volume for Apple.Scatterplot Add the best fit line.The line of best fit is sloping down so that means the 2 variables are negatively related.
Scatterplot Plot the relationship between closing price and volume for both Apple and Microsoft.Hint: Use facet_wrap().