1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Data Visualization with Julia

Exercise

Potato prices

Histograms are an effective way to visualize distributions. In this exercise, you will create a histogram to display the historical prices of potatoes in various markets across India. You will experiment with different bin sizes to determine the most suitable one.

The DataFrames and Plots packages have already been imported for you, and the potato DataFrame is ready for use.

Instructions 1/3

undefined XP
  • 1
    • Make a histogram of the Retail Price column, hide the label, and set the color argument to :orange3.
  • 2
    • Recreate the histogram in the last step, but now with the number of bins set to 10.
  • 3
    • Force the number of bins to be 25, using a range vector starting at 0 and ending at 75.