Question: 3. Problem 3 (60 marks) Let's go back to the gapminder dataset partially explored in the Module 2a notes. a. (15 marks) Using R, and


3. Problem 3 (60 marks) Let's go back to the gapminder dataset partially explored in the Module 2a notes. a. (15 marks) Using R, and the R function ggplot, produce one scatterplot with gapPerCap on the x-axis and lifeErp on the y-axis for the 1962 data, and a second scatterplot for the 1992 data. Compare and contrast what you see in these two plots. NOTE: Unlike what you see in the Module 2a code, you should add your own centered title to each of these plots. The way to do this is to add the following to the ggplot call used to create scatterplots in the Example in Section 2.2 of the Module 2a notes: + ggtitle("Enter your title here") + theme (plot. title = element_text (hjust = 0.5))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
