The goal is to see the correlation of TD passes and the years they have been thrown. I will go about this making a scatterplot to see the years TD passes were thrown and then if there have been more touchdowns thrown as time has moved on or what.
ggplot(NFLpassing,aes(x=NFLpassing$Year,y=NFLpassing$`TD Passes`))+geom_point()+geom_smooth()+labs(title="TD passes thrown by year",x="year",y="TD passes thrown")
`geom_smooth()` using method = 'gam' and formula = 'y ~ s(x, bs = "cs")'
After seeing this we can see that on average there are more TD passes thrown as the NFL advances. Reasons for this could be players are getting alot better,you can see that as history continues there are more TD passes thrown and the most are coming from recent years. I would say the QB play is better. Another factor is in recent years the season is longer so QBs have an opportunity to throw the ball even more.