Get startedGet started for free

Exercise 12. Infant mortality scatter plot - part 2 - logarithmic axis

Now we are going to transform the x axis of the plot from the previous exercise.

This exercise is part of the course

Data Science Visualization - Module 2

View Course

Exercise instructions

  • The mutated dataset is preloaded as gapminder_Africa_2010.
  • As in the previous exercise, make a scatter plot of infant_mortality versus dollars_per_day for countries in the African continent.
  • As in the previous exercise, use color to denote the different regions of Africa.
  • Transform the x axis to be in the log (base 2) scale.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

gapminder_Africa_2010 %>% # your plotting code here
Edit and Run Code