Scenario
In the previous activity, you made a judicious choice of a geometric object (bar chart or histogram) for a given variable. In this activity, you will see how to improve a visualization. If you are producing plots to look at privately, you might be okay using the default settings. However, when you are creating plots for publication or giving a presentation, or if your company requires a certain theme, you will need to produce more professional plots that adhere to certain visualization rules and guidelines. This activity will help you to improve visuals and create a more professional plot.
Aim
To create improved visualizations by using the Grammar of Graphics.
Steps for Completion
- Create two of the plots from the previous activity.
- Use the Grammar of Graphics to improve your graphics by layering upon the base graphic.
Refer to the complete code at https://goo.gl/tu7t4y.
Take a look at the following output, histogram 1:
![](assets/79474927-642b-40c9-b967-bebc7df6e2fe.png)
Histogram 2:
![](assets/a95aba69-e445-4cf5-96d2-1c2f6a3b2977.png)