Using Density Plots to Compare Distributions

Scenario

Comparing the distribution of sales for different car models in a car company.

Aim

To use density plots to compare distributions.

Steps for Completion

  1. Use the dataset provided.
  2. Compare the TIP amount for various days.
  3. Superimpose all of the plots.
  4. Use the required command for the x-axis tick marks.
  5. Reproduce the plot that follows:

Refer to the complete code at: https://goo.gl/x4wQHG.

Get Applied Data Visualization with R and ggplot2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.