PROBLEM SET 3

Javad Mammadov

Questions

  1. Using data from the nasa weather package, create a scatter plot between wind and pressure, with color being used to distinguish the type of storm.
2. Use the `MLB_teams` data in the `mdsr` package to create an informative data graphic that illustrates the relationship between winning percentage and payroll in context.
  1. The RailTrail data set from the mosaicData package describes the usage of a rail trail in Western Massachusetts. Use these data to answer the following questions.
  1. Create a scatterplot of the number of crossings per day volume against the high temperature that day
  1. Separate your plot into facets by weekday (an indicator of weekend/holiday vs. weekday)
  2. Add regression lines to the two facets

4. Using data from the `nasa weather` package, use the `geom_path` function to plot the path of each tropical storm in the `storms` data table. Use color to distinguish the storms from one another, and use faceting to plot each year in its own panel.

  1. Using the penguins data set from the palmerpenguins package.
  1. Create a scatterplot of bill_length_mm against bill_depth_mm where individual species are colored and a regression line is added to each species. Add regression lines to all of your facets. What do you observe about the association of bill depth and bill length?
  1. Repeat the same scatterplot but now separate your plot into facets by species. How would you summarize the association between bill depth and bill length.