We will use this code to answer this question:
g1=ggplot(data=df_tn, aes(x=population, y=violent, color=law))+
geom_point()+
geom_smooth(method=“lm”, color=“lightyellow”)
This code will show us how violent crimes relate to population. The yellow linear regression line fits this data better, indicating there may be some relationship (or some way to predict) between population and violent crime rates. We can also see our confidence interval (gray) and whether or not these numbers were during a year when TN had a gun carrying law or not.