Get startedGet started for free

Histograms

Now we are going to make a histogram.

This exercise is part of the course

Data Science R Basics

View Course

Exercise instructions

  • Compute the population in millions and save it to the object population_in_millions
  • Create a histogram of the state populations using the function hist

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Store the population in millions and save to population_in_millions 
population_in_millions <- murders$population/10^6


# Create a histogram of this variable
Edit and Run Code