Histograms

Explore histograms and how to plot them in R.

Let’s consider the temp variable in the weather data frame once again. This time, we’ll only look at how the values of temp are distributed.

  • What are the smallest and largest values?

  • What is the center or most typical value?

  • How do the values spread out?

  • What are frequent and infrequent values?

One way to visualize the distribution of this single variable temp is to plot it on a horizontal line, as shown below:

Get hands-on with 1400+ tech skills courses.