Know your data
Visualize your data – categorical variables
Work with your chart 2
17. Add meaningful axes titles
Check yourself 2

Instruction

Use axis titles to clarify your information.

We already know that the chart title should accurately represent the chart's contents. The same rule applies to axes titles – they should accurately represent the variable and the units used on that axis.

Exercise

Add meaningful titles for both axes. Use the labs() command, with x set to "wealth category" and y set to "percentage of each consumption category".

When you're done, press the Run and Check Code button.

Stuck? Here's a hint!

You should write:

labs(x = "wealth category", y = "percentage of each consumption category")