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.

Q1 filter Select Apple and save it under plotdata.

Q2 Line plot Plot the relationship between time (date) and Apple stock prices (close).

Q3 In what month did the Apple stock peak this year?.

Apple stock peaked in October this year.

Q4 Scatterplot Plot the relationship between closing price and volume for Apple.

Q5 Scatterplot Add the best fit line.

Q6 Describe the relationship between closing price and volume for Apple.

The line of best fit is sloping down so that means the 2 variables are negatively related.

Q7 Scatterplot Plot the relationship between closing price and volume for both Apple and Microsoft.

Hint: Use facet_wrap().

Q8 Hide the messages, the code and its results on the webpage.

Q9 Display the title and your name correctly at the top of the webpage.

Q10 Use the correct slug.