Session Ready
Exercise

Scatter Plot + Regression Line (Regression Line)

In this exercise, you will fit a linear model and add a regression line to the scatter plot created in the previous exercise.

Note that:

  • fivethirtyeight, dplyr and rbokeh packages are pre-loaded and available in this session.
  • dat_90_13_wide dataframe and p_scatter figure are available from the previous exercise.
Instructions
100 XP

Using the dat_90_13 dataframe:

  • Fit a linear model with log(intgross_2013) as the response and log(budget_2013) as the predictor.
  • Add the linear regression line to p_scatter using ly_abline.