In this section, we'll use the Grammar of Graphics to change defaults and create a better visualization.
Let's begin by implementing the following steps:
- Use the humidity data to create the same boxplot seen in the previous section, for plotting monthly data.
- Change the x- and y-axis labels appropriately (the x-axis is the month and the y-axis is the humidity).
- Type ?geom_boxplot in the command line, then look for the aesthetics, including the color and the fill color.
- Change the color to black and the fill color to green (try numbers from 1-6).
- Type ?theme to find out how to change the label size to 15. Change the x- and y-axis titles to size 15 and the color to red.
The outcome will ...