Session Ready
Exercise

Changing graphical parameters in histogram

For this exercise, you will create a histogram of ozone concentration recorded in the built-in dataset airquality conditioned on month, changing some of the default graphical parameters.

Instructions
100 XP
  • The Month variable is recorded in the dataset as an integer code. Use the built-in variable month.name to convert the month code into month names and use the resulting variable for conditioning. Make sure the months are ordered correctly.

  • Using the airquality dataset, create a histogram of Ozone on the x-axis conditioning on Month.Name.

  • By specifying additional arguments border and col with suitable values, display the bins as rectangles without borders (R color "transparent") and filled with a medium grey (R color "grey50") color.