Session Ready
Exercise

Basic Plotting with Histograms

Another traditional graphics function is the hist() function. The function returns a histogram of your numeric data.

In addition you can call the rug() function, that adds little ticks beneath the histogram to display how the data is distributed.

The pretest continuous variable is pre-loaded in your workspace.

Instructions
100 XP
  • Make a histogram of the pretest variable and add ticks to it by using the rug() function.