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.Hint: See the code in 4.2.2 Line plot.
Line plot Plot the relationship between time (date) and Apple stock prices (close).Hint: See the code in 4.2.2 Line plot.
Hint: See the line plot you created in the previous question.
Apple stock peaked in two months this year the first peak was in May and the last peak was in October.
Scatterplot Plot the relationship between closing price and volume for Apple.Hint: See the code in 4.2.1 Scatterplot
Scatterplot Add the best fit line.Hint: See the code in 4.2.1 Scatterplot
Hint: See the scatterplot you created in the previous question.
The relationship between closing price and volume for Apple is that the lower the volume they have the lower the price is when they close for the day. This is because the line of best fit has a negative slope.
Scatterplot Plot the relationship between closing price and volume for both Apple and Microsoft.Hint: Use facet_wrap().
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.