Boxing states
In this exercise, you will build upon the previous analysis that compared the prices of different food commodities across three Indian states: Jammu and Kashmir, Bihar, and Punjab. Box plots excel in comparing the central tendency, spread, and skewness of distributions. You will create a box plot to facilitate a side-by-side comparison of price distributions in these states.
The necessary packages, DataFrames
and StatsPlots
, have already been imported for your convenience, and the commodities
DataFrame holds the relevant data for analysis.
This exercise is part of the course
Introduction to Data Visualization with Julia
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create box plot
____(
____.____,
____."____",
# Customize it
color=:____,
label=____,
)
____("Price (Rupees)")