The following are the activity solutions for this chapter.
Chapter 3:Â Advanced Geoms and Statistics
Activity: Using Density Plots to Compare Distributions
Steps for Completion:
- Use the RestaurantTips dataset in Lock5data.
- Compare the TIP amount for various days. Use aes=color for geom_density command.
- Superimpose all of the plots.
- Use the scale_x_continuous command for the x-axis tick marks.
Activity: Plot the Monthly Closing Stock Prices and the Mean Values
Steps for Completion:
- Use the strftime command to get the month from each date and make another...