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

Exercise

Cleaning up the pie

The pie chart you made in the last plot is good, but it's a little cluttered. Let's clean it up using the ggplot function theme_void() along with giving it a meaningful title with ggtitle(...).

The disease_counts summarized data frame from the last exercise is already loaded for you.

Instructions

100 XP
  • Add theme_void() to the ggplot object to clean up the background.
  • Give the plot the title 'Proportion of diseases'.