LoslegenKostenlos loslegen

Price distributions

In this exercise, the focus is once again on examining the distribution of product prices across various Indian centers. To facilitate easy comparisons, you will utilize a violin plot to display the price distributions for multiple products.

The required packages, namely DataFrames and StatsPlots, have already been imported for your convenience. Additionally, the product DataFrame is readily accessible and can be utilized for this analysis.

Diese Übung ist Teil des Kurses

Introduction to Data Visualization with Julia

Kurs anzeigen

Anleitung zur Übung

  • Generate a violin plot to visualize the relationship between "Retail Price" and Commodity.
  • Hide the line within the violin plot.
  • Customize the color of the plot to royalblue1.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Create violin plot
____(
	____.____,
    ____."____",
    # Hide line
    linewidth=____,
    # Set the color
    color=:____,
    label=false,
)
title!("Product Prices in India")
ylabel!("Price (Rupees)")
Code bearbeiten und ausführen