Passing TD affect on QBR

superbowlstatistics %>% 
  ggplot(aes(x = as.factor(passing_td), y = qbr)) +
  geom_boxplot() +
  labs(title = "QBR by Passing TD")
## Warning: Removed 874 rows containing non-finite values (stat_boxplot).

## Longest Run as a % of Total Yards

superbowlstatistics %>% 
  filter(player %in% c('Franco Harris', 'Terrell Davis', 'Emmitt Smith', 'Thurman Thomas')
         , rush_attempts > 0) %>% 
  ggplot(aes(x = longest_run, y = longest_run/rushing_yards * 100, color = player))+
  geom_point()+
  labs(title = "Longest run as a % of total rushing yards",
       y = "% of total rushing yards")

this shows a players longest run and the percentage of total yards gained from that run for a few hall of fame running backs with multiple appearances, This shows that longest runs under 20 yards are less likely to account for more than 10% of their total rushing, exception is Thurman Thomas he got shut down

##AVG Passing yard by team

superbowlstatistics %>% 
  filter(pass_attempts >=1) %>% 
  ggplot(aes(x = team, y = passing_yards)) +
  geom_bar(stat = "summary", fun = mean)+
  labs(title = 'avg passing yards by team')+
  theme(axis.text.x = element_text(angle = -45, hjust = 0))

this shows avg passing yards by team, this shows how well quarterbacks perform in the big game. Some teams like the patriots and San Francisco have many appearances which gives indication to how theyd usually perform, STL is the leader here

##Year by Year QB stats

superbowlstatistics %>%
  filter(year > 2005, pass_attempts > 0) %>% 
  ggplot(aes(x = passing_td, y = passing_yards, color = year)) +
  geom_point() + 
  labs(title = 'QB battle year by year')

How do QBs stack up in the superbowl? This shows passers by year and compares passing TDs and yards.

##QB Comparison

superbowlstatistics %>% 
  filter(player %in% c('Tom Brady', 'Joe Montana')) %>% 
  ggplot(aes(x = passing_td, y= passing_yards))+
  geom_point()+
  facet_wrap(~ player)

What does a comparison between Montana and Brady look like? (Two most legendary QBs) This graph compares individual superbowl performances between brady and Montana, Brady has had the most impressive performances yards wise, montana higher TDs in a game