library(tidyverse)
## Warning: package 'tidyverse' was built under R version 4.1.2
## -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
## v ggplot2 3.3.5 v purrr 0.3.4
## v tibble 3.1.4 v dplyr 1.0.7
## v tidyr 1.1.3 v stringr 1.4.0
## v readr 2.0.1 v forcats 0.5.1
## -- Conflicts ------------------------------------------ tidyverse_conflicts() --
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
library(ggrepel)
## Warning: package 'ggrepel' was built under R version 4.1.2
library(scales)
##
## Attaching package: 'scales'
## The following object is masked from 'package:purrr':
##
## discard
## The following object is masked from 'package:readr':
##
## col_factor
library(ggbump)
running <- read_csv("data/rushing.csv")
## Rows: 372 Columns: 15
## -- Column specification --------------------------------------------------------
## Delimiter: ","
## chr (3): Player, Tm, Pos
## dbl (12): Rk, Age, G, GS, Att, Yds, TD, 1D, Lng, Y/A, Y/G, Fmb
##
## i Use `spec()` to retrieve the full column specification for this data.
## i Specify the column types or set `show_col_types = FALSE` to quiet this message.
Do you ever want to know who the best running back is in the NFL? Some might say CMC, Derrick Henry, or even Austin Ekeler. I will be showing you some graphs and tell you who is the best running back is in the game right now.
ggplot() +
geom_point(
data = running,
aes(x = `Yds`, y = `Att`, size = G),
color = "green",
alpha = .2
) +
geom_point(
data = running,
aes(x = `Yds`, y = `Att`, size = G),
color = "orange",
alpha = .2
) +
geom_vline(xintercept = 163.6237) +
geom_hline(yintercept = 37.07527) +
geom_text_repel(
data = running,
aes(x = `Yds`, y = `Att`, label = Player),
size = 3
) +
labs(
x = "Rushing Yards",
y = "Attempts",
title = "Who has the best rushing yards last season?",
subtitle = "Looking back at the top rushers from last season",
caption = "Source: Pro-Football-Reference.com | By Tyler Shada",
size = "Games"
) +
theme_minimal() +
theme(
plot.title = element_text(size = 16, face = "bold"),
axis.title = element_text(size = 10),
plot.subtitle = element_text(size=10),
panel.grid.minor = element_blank()
)
## Warning: ggrepel: 359 unlabeled data points (too many overlaps). Consider
## increasing max.overlaps
The graph shows (Player) is the best in the game. They have the most rushing yards and most attempts which equals them to be the best player in the game right now.
ggplot() +
geom_bump(data=running, aes(x=`Yds`, y=`Att`, color=Player)) +
geom_point(data=running, aes(x=`Yds`, y=`Att`, color=Player), size = 5) +
geom_text(data = running %>% filter(`Yds` == min(`Yds`)), aes(x = `Yds` - .2, y= `Att`, label = Player), size = 2, hjust = 2) +
geom_text(data = running %>% filter(`Yds` == max(`Yds`)), aes(x = `Yds` + .2, y= `Att`, label = Player), size = 2, hjust = 2) +
labs(title="Any suprise who the best running back in the NFL is?", subtitle="Derrick Henry leading in this category again.", y= "Attempts", x = "Rushing Yards") +
theme_minimal() +
theme(
legend.position = "none",
panel.grid.major = element_blank(),
plot.title = element_text(size = 16, face = "bold"),
axis.title = element_text(size = 10),
plot.subtitle = element_text(size=10),
panel.grid.minor = element_blank()
)
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
## Warning in f(...): 'StatBump' needs at least two observations per group
Any surprise to come from this with Derrick Henry leading in another graph. This is coming from the graph and no surprise that Henry is still leading again with a big lead of stats against everyone. He is showing why he is the best in the NFL.
ggplot() +
geom_point(
data = running,
aes(x = `Y/G`, y = `Y/A`, size = G),
color = "green",
alpha = .2
) +
geom_point(
data = running,
aes(x = `Y/G`, y = `Y/A`, size = G),
color = "orange",
alpha = .2
) +
geom_vline(xintercept = 14.35484) +
geom_hline(yintercept = 4.154839) +
geom_text_repel(
data = running,
aes(x = `Y/G`, y = `Y/A`, label = Player),
size = 3
) +
labs(
x = "Yards Per Game",
y = "Yards Per Attempt",
title = "Who has the best rushing yards last season?",
subtitle = "Looking back at the top rushers from last season",
caption = "Source: Pro-Football-Reference.com | By Tyler Shada",
size = "Games"
) +
theme_minimal() +
theme(
plot.title = element_text(size = 16, face = "bold"),
axis.title = element_text(size = 8),
plot.subtitle = element_text(size=5),
panel.grid.minor = element_blank()
)
## Warning: ggrepel: 356 unlabeled data points (too many overlaps). Consider
## increasing max.overlaps
After calculating yards per attempt and yards per game, Derrick Henry is still in the lead follow by Dalvin Cook and Nick Chubb. I calculated this and see if they’re any changes and their was not much any at all. Henry is still in the lead among running backs.
ggplot() +
geom_point(
data = running,
aes(x = `TD`, y = `1D`, size = G),
color = "green",
alpha = .2
) +
geom_point(
data = running,
aes(x = `TD`, y = `1D`, size = G),
color = "orange",
alpha = .2
) +
geom_vline(xintercept = 1.430108) +
geom_hline(yintercept = 9.569892) +
geom_text_repel(
data = running,
aes(x = `TD`, y = `1D`, label = Player),
size = 3
) +
labs(
x = "Touchdowns",
y = "First Downs",
title = "Who is the best back getting to the endzone and first down?",
subtitle = "Looking back at the top rushers according from endzone and first down from last season",
caption = "Source: Pro-Football-Reference.com | By Tyler Shada",
size = "Games"
) +
theme_minimal() +
theme(
plot.title = element_text(size = 16, face = "bold"),
axis.title = element_text(size = 8),
plot.subtitle = element_text(size=10),
panel.grid.minor = element_blank()
)
## Warning: ggrepel: 346 unlabeled data points (too many overlaps). Consider
## increasing max.overlaps
Overall, from all of these graphs, Derrick Henry has became the best running back from them and can finally put everything to rest. He has proven to be better than Nick Chubb, Dalvin Cook and Alvin Kamara even. He is proven to be the best running back again from the graphs. I even mix up some of the data to make it more intriguing to see if it changes and it doesn’t really.