Creating a layered plot with a scatter plot and fitted line