Session Ready
Exercise

Detecting modification effects

Now that you have new weighted star reviews for each restaurant, let's see if you can detect the effects of the modifications.

To do so, you will make use of some a general hist plot and a qplot from the ggplot2 package. These graphs will help us visualize the effect of your modification. Take note of the magnitudes of the changes and if there were any patterns in the distribution of the difference in star reviews.

A final summary of the new_review_indian will give context to how the reviews changed as well.

Instructions
100 XP
  • Make ggplot2 available in the environment
  • Use hist() function and the new_review_indian$diff column to create the plot of the distribution.
  • Use geom_bar() with the new_review_indian$diff to the plot the difference in star review per restaurant. Fill in the x enlargement with the new_review_indian data set and assign the y argument within the aes() to the diff variable.
  • Display the summary of the new_review_indian data frame