1. Learn
  2. /
  3. Courses
  4. /
  5. Visualization Best Practices in R

Exercise

Familiarizing with disease data

The dataset containing disease cases from the World Health Organization (WHO) is loaded into your environment as the data frame who_disease.

In order to familiarize yourself with the data, let's start by printing it to the console.

Once you've investigated it a bit, make a simple bar chart of the number of observations by region using the supplied code. You will need to fill in the aes()thetics function to map the x-axis to the proper column name.

This course touches on a lot of concepts you may have forgotten, so if you ever need a quick refresher, download the Tidyverse Cheat Sheet and keep it handy!

Instructions

100 XP
  • Print data frame by simply calling the it: who_disease.
  • Modify ggplot code so aes() contains the region as its x-axis mapping.