1. Learn
  2. /
  3. Courses
  4. /
  5. Data Science Visualization - Module 2

Exercise

Exercise 8. Dollars per day - part 2

Now we are going to calculate and plot dollars per day for African countries in 2010 using GDP data.

In the second part of this analysis, we will plot the smooth density plot using a log (base 2) x axis.

Instructions

100 XP
  • The dataset including the dollars_per_day variable is preloaded as daydollars.
  • Create a smooth density plot of dollars per day from daydollars.
  • Use scale_x_continuous to change the x-axis to a log (base 2) scale.