
NFL Weekly Leaderboard
Saiem Gilani
Source: vignettes/leaderboard-nfl-weekly.Rmd
leaderboard-nfl-weekly.RmdOn this page
Updated 2026-11-30: the 2026 season through week 12 (178 games).
This page is rebuilt every week with the site. It finds the latest NFL season with play-by-play, ranks every team by EPA (expected points added) per play, plots offense against defense, and lists the most efficient quarterbacks with their headshots: the season to date while games are being played, the last full regular season in the offseason. Data: nflverse play-by-play and schedules, read with nflreadr.
Picking the season
The season starts in September, so before then the calendar points at
last season. nflverse publishes a season’s play-by-play file with its
first games; until then nflreadr::load_pbp() errors, and
the page steps back one season instead of failing. The status line above
comes from the schedule: games still to play mean the season to date, a
played Super Bowl means the offseason.
library(sdvplotR)
library(dplyr, warn.conflicts = FALSE)
library(ggplot2)
library(gt)
today <- Sys.Date()
# The season starts in September, so before then the calendar points at last season
current <- as.integer(format(today, "%Y")) - (format(today, "%m") < "09")
# A season's regular-season plays, or NULL when nflverse has not published any:
# load_pbp() errors for a season past nflreadr::most_recent_season()
regular_season <- function(season) {
pbp <- tryCatch(nflreadr::load_pbp(season), error = function(e) NULL)
if (is.null(pbp)) {
return(NULL)
}
pbp <- filter(pbp, season_type == "REG")
if (nrow(pbp) == 0) NULL else pbp
}
season <- current
pbp <- regular_season(season)
if (is.null(pbp)) {
season <- current - 1
pbp <- regular_season(season)
}
stopifnot(!is.null(pbp))
schedule <- nflreadr::load_schedules(season)
week <- max(pbp$week)
n_games <- n_distinct(pbp$game_id)
unplayed <- sum(schedule$game_type == "REG" & is.na(schedule$result))
super_bowl <- any(schedule$game_type == "SB" & !is.na(schedule$result))
through <- if (unplayed > 0) paste("through week", week) else "final regular season"
status <- if (unplayed > 0) {
sprintf("the %d season through week %d (%d games).", season, week, n_games)
} else if (!super_bowl) {
sprintf("the final %d regular season; the playoffs are under way.", season)
} else {
sprintf(
"the offseason, so this is the final %d regular season. The %d season starts in September.",
season, season + 1
)
}1. Power table
Every team’s record and point differential from the schedule, and its
EPA per pass or run play on offense and allowed on defense, from the
play-by-play. Net EPA per play is offense minus defense; the trend
compares each team’s last three games with its season.
gt_merge_stack_team_color() stacks the record under the
nickname in team colors, gt_delta() computes the trend, and
gt_sdv_logos() turns the nflverse abbreviations into
logos.
plays <- pbp |>
filter(pass == 1 | rush == 1, !is.na(epa), !is.na(posteam))
offense <- plays |>
group_by(game_id, week, team = posteam) |>
summarise(off = sum(epa), off_n = n(), .groups = "drop")
defense <- plays |>
group_by(game_id, team = defteam) |>
summarise(dfn = sum(epa), dfn_n = n(), .groups = "drop")
# a fixed row order: every sum below adds up in the same order each week
per_game <- inner_join(offense, defense, by = c("game_id", "team")) |>
arrange(team, week)
per_play <- function(games) {
games |>
group_by(team) |>
summarise(
off_epa = sum(off) / sum(off_n),
def_epa = sum(dfn) / sum(dfn_n),
.groups = "drop"
) |>
mutate(net = off_epa - def_epa)
}
last3 <- per_game |>
group_by(team) |>
slice_tail(n = 3) |>
ungroup() |>
per_play() |>
select(team, last3 = net)
games <- filter(schedule, game_type == "REG", game_id %in% pbp$game_id)
record <- bind_rows(
transmute(games, team = home_team, pf = home_score, pa = away_score),
transmute(games, team = away_team, pf = away_score, pa = home_score)
) |>
group_by(team) |>
summarise(
w = sum(pf > pa), l = sum(pf < pa), t = sum(pf == pa), diff = sum(pf - pa),
.groups = "drop"
) |>
mutate(record = if_else(t > 0, paste(w, l, t, sep = "-"), paste(w, l, sep = "-")))
nicknames <- nflreadr::load_teams() |>
select(team = team_abbr, name = team_nick)
power <- per_play(per_game) |>
inner_join(last3, by = "team") |>
inner_join(record, by = "team") |>
inner_join(nicknames, by = "team") |>
arrange(desc(net), team) |> # the team breaks a tie, so an unchanged week renders the same
mutate(rank = row_number()) |>
select(rank, team, name, record, diff, off_epa, def_epa, net, last3)
head(power)
#> # A tibble: 6 × 9
#> rank team name record diff off_epa def_epa net last3
#> <int> <chr> <chr> <chr> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 1 SF 49ers 10-1 113 0.177 -0.0211 0.199 0.228
#> 2 2 KC Chiefs 8-3 105 0.115 -0.0785 0.194 0.312
#> 3 3 JAX Jaguars 8-3 137 0.100 -0.0726 0.173 0.143
#> 4 4 LA Rams 7-4 74 0.0745 -0.0793 0.154 0.315
#> 5 5 CIN Bengals 8-3 93 0.147 0.0133 0.133 0.153
#> 6 6 BUF Bills 10-1 108 0.104 -0.00967 0.114 0.170
good_bad <- c("#c84630", "#f7f7f7", "#2e8b57")
reach <- max(abs(c(power$off_epa, power$def_epa))) # one symmetric scale for both sides
power |>
gt(id = "nfl-power") |> # a fixed id: gt draws a random one otherwise
tab_header(
title = paste("NFL power table,", season),
subtitle = paste("Ranked by net EPA per play,", through)
) |>
fmt_number(c(off_epa, def_epa, net, last3), decimals = 3, force_sign = TRUE) |>
fmt_number(diff, decimals = 0, force_sign = TRUE) |>
data_color(off_epa, palette = good_bad, domain = c(-reach, reach)) |>
data_color(def_epa, palette = rev(good_bad), domain = c(-reach, reach)) |>
data_color(net, palette = good_bad, domain = c(-1, 1) * max(abs(power$net))) |>
tab_spanner("EPA per play", c(off_epa, def_epa, net, last3)) |>
cols_label(
rank = "", team = "", name = "Team", diff = "Pt diff",
off_epa = "Offense", def_epa = "Defense", net = "Net", last3 = "Last 3"
) |>
tab_source_note(paste(
"Data: nflverse play-by-play via nflreadr. Pass and run plays;",
"defense is EPA allowed (lower is better). Viz: sdvplotR"
)) |>
gt_merge_stack_team_color(name, record, team, league = "nfl") |>
gt_delta(net, last3, column_label = "Trend", decimals = 3, arrows = TRUE) |>
gt_sdv_logos(columns = team, league = "nfl", height = 26) |>
gt_theme_athletic()| NFL power table, 2026 | ||||||||
| Ranked by net EPA per play, through week 12 | ||||||||
| Team | Pt diff |
EPA per play
|
Trend | |||||
|---|---|---|---|---|---|---|---|---|
| Offense | Defense | Net | Last 3 | |||||
| 1 | ![]() |
49ers
10-1
|
+113 | +0.177 | −0.021 | +0.199 | +0.228 | ▲ 0.030 |
| 2 | ![]() |
Chiefs
8-3
|
+105 | +0.115 | −0.078 | +0.194 | +0.312 | ▲ 0.119 |
| 3 | ![]() |
Jaguars
8-3
|
+137 | +0.100 | −0.073 | +0.173 | +0.143 | ▼ 0.030 |
| 4 | ![]() |
Rams
7-4
|
+74 | +0.075 | −0.079 | +0.154 | +0.315 | ▲ 0.161 |
| 5 | ![]() |
Bengals
8-3
|
+93 | +0.147 | +0.013 | +0.133 | +0.153 | ▲ 0.019 |
| 6 | ![]() |
Bills
10-1
|
+108 | +0.104 | −0.010 | +0.114 | +0.170 | ▲ 0.057 |
| 7 | ![]() |
Bears
9-2
|
+69 | +0.048 | −0.014 | +0.062 | +0.031 | ▼ 0.031 |
| 8 | ![]() |
Lions
8-3
|
+64 | +0.135 | +0.078 | +0.056 | +0.153 | ▲ 0.096 |
| 9 | ![]() |
Texans
5-6
|
+40 | +0.060 | +0.006 | +0.055 | +0.080 | ▲ 0.025 |
| 10 | ![]() |
Seahawks
6-5
|
+45 | −0.017 | −0.063 | +0.046 | +0.123 | ▲ 0.077 |
| 11 | ![]() |
Steelers
7-4
|
+35 | −0.015 | −0.051 | +0.036 | −0.033 | ▼ 0.070 |
| 12 | ![]() |
Packers
6-5
|
−8 | +0.010 | −0.014 | +0.023 | −0.020 | ▼ 0.044 |
| 13 | ![]() |
Giants
7-3-1
|
+16 | +0.019 | −0.002 | +0.021 | +0.035 | ▲ 0.014 |
| 14 | ![]() |
Buccaneers
3-7
|
+14 | −0.059 | −0.078 | +0.019 | +0.040 | ▲ 0.021 |
| 15 | ![]() |
Cowboys
5-7
|
+24 | +0.143 | +0.125 | +0.018 | +0.031 | ▲ 0.013 |
| 16 | ![]() |
Patriots
6-5
|
+4 | +0.040 | +0.024 | +0.016 | −0.079 | ▼ 0.095 |
| 17 | ![]() |
Vikings
8-3
|
+39 | −0.075 | −0.085 | +0.011 | −0.020 | ▼ 0.030 |
| 18 | ![]() |
Broncos
8-3
|
+4 | −0.007 | −0.010 | +0.003 | −0.011 | ▼ 0.014 |
| 19 | ![]() |
Panthers
5-5
|
−15 | +0.028 | +0.036 | −0.008 | +0.029 | ▲ 0.037 |
| 20 | ![]() |
Browns
6-5
|
−35 | −0.031 | −0.014 | −0.016 | +0.035 | ▲ 0.052 |
| 21 | ![]() |
Commanders
5-5-1
|
−15 | −0.001 | +0.019 | −0.019 | +0.058 | ▲ 0.077 |
| 22 | ![]() |
Ravens
4-8
|
−55 | +0.010 | +0.035 | −0.025 | −0.010 | ▲ 0.015 |
| 23 | ![]() |
Jets
4-8
|
−46 | +0.010 | +0.065 | −0.055 | −0.046 | ▲ 0.009 |
| 24 | ![]() |
Saints
3-8
|
−52 | −0.030 | +0.046 | −0.075 | −0.105 | ▼ 0.030 |
| 25 | ![]() |
Raiders
5-7
|
−49 | +0.001 | +0.079 | −0.078 | −0.167 | ▼ 0.089 |
| 26 | ![]() |
Falcons
3-8
|
−71 | −0.062 | +0.034 | −0.096 | −0.264 | ▼ 0.167 |
| 27 | ![]() |
Dolphins
1-10
|
−104 | −0.078 | +0.052 | −0.130 | −0.092 | ▲ 0.039 |
| 28 | ![]() |
Eagles
4-7
|
−69 | −0.068 | +0.064 | −0.132 | −0.072 | ▲ 0.059 |
| 29 | ![]() |
Colts
3-9
|
−90 | −0.099 | +0.047 | −0.146 | −0.166 | ▼ 0.021 |
| 30 | ![]() |
Titans
1-10
|
−110 | −0.033 | +0.118 | −0.151 | −0.257 | ▼ 0.106 |
| 31 | ![]() |
Cardinals
3-9
|
−142 | −0.050 | +0.107 | −0.158 | −0.412 | ▼ 0.254 |
| 32 | ![]() |
Chargers
1-10
|
−123 | −0.130 | +0.057 | −0.187 | −0.141 | ▲ 0.046 |
| Data: nflverse play-by-play via nflreadr. Pass and run plays; defense is EPA allowed (lower is better). Viz: sdvplotR | ||||||||
gt_save_crop(table, "nfl-power.png") renders the same
table to a trimmed PNG, ready to post; see Saving and Posting Tables.
2. Offense against defense
The same EPA per play as a scatter, one logo per team. The y axis is reversed so the better defenses sit higher: the top-right corner is where good teams live. The faint diagonals are lines of equal net EPA per play, 0.1 apart.
ggplot(power, aes(x = off_epa, y = def_epa)) +
geom_abline(slope = 1, intercept = seq(-0.6, 0.6, by = 0.1), colour = "grey88", linewidth = 0.3) +
geom_hline(yintercept = mean(power$def_epa), linetype = "dashed", colour = "grey55") +
geom_vline(xintercept = mean(power$off_epa), linetype = "dashed", colour = "grey55") +
geom_sdv_logos(aes(team = team), league = "nfl", width = 0.06, alpha = 0.9) +
# logos do not widen the limits, so leave room for the outermost ones
scale_x_continuous(expand = expansion(mult = 0.07)) +
scale_y_reverse(expand = expansion(mult = 0.07)) +
labs(
title = paste("NFL offense and defense,", season),
subtitle = paste("EPA per pass or run play,", through),
x = "Offense: EPA per play",
y = "Defense: EPA allowed per play (reversed)",
caption = "Data: nflverse via nflreadr | Viz: sdvplotR"
) +
theme_minimal(base_size = 13) +
theme(plot.title = element_text(face = "bold"), panel.grid.minor = element_blank())
3. Quarterback leaderboard
EPA per dropback (passes, sacks and scrambles) for quarterbacks with
at least 15 dropbacks per team game, with completion percentage over
expected (CPOE). The play-by-play’s id column is the
passer’s GSIS id, which is what gt_sdv_headshots() takes
for the NFL; the season’s rosters, keyed by the same id, give the full
names.
team_games <- max(count(per_game, team)$n)
qbs <- pbp |>
filter(qb_dropback == 1, !is.na(qb_epa), !is.na(id)) |>
arrange(game_id, play_id) |>
group_by(id) |>
summarise(
name = last(name),
team = last(posteam),
dropbacks = n(),
epa = mean(qb_epa),
cpoe = mean(cpoe, na.rm = TRUE),
success = mean(success, na.rm = TRUE),
td = sum(pass_touchdown, na.rm = TRUE),
int = sum(interception, na.rm = TRUE),
.groups = "drop"
) |>
filter(dropbacks >= 15 * team_games) |>
arrange(desc(epa), id) |>
mutate(rank = row_number(), headshot = id)
full_names <- nflreadr::load_rosters(season) |>
distinct(id = gsis_id, full_name) |>
filter(!is.na(id), !duplicated(id))
qbs <- qbs |>
left_join(full_names, by = "id") |>
mutate(name = coalesce(full_name, name))
nrow(qbs)
#> [1] 31
qbs |>
slice_head(n = 16) |>
select(rank, headshot, name, team, dropbacks, epa, cpoe, success, td, int) |>
gt(id = "nfl-qbs") |>
tab_header(
title = paste("NFL quarterbacks by EPA per dropback,", season),
subtitle = paste0("Minimum ", 15 * team_games, " dropbacks, ", through)
) |>
fmt_number(epa, decimals = 3, force_sign = TRUE) |>
fmt_number(cpoe, decimals = 1, force_sign = TRUE) |>
fmt_percent(success, decimals = 1) |>
cols_label(
rank = "", headshot = "", name = "Quarterback", team = "", dropbacks = "Dropbacks",
epa = "EPA/db", cpoe = "CPOE", success = "Success", td = "TD", int = "INT"
) |>
tab_source_note("Data: nflverse play-by-play via nflreadr | Viz: sdvplotR") |>
gt_color_pills(
epa,
palette = good_bad, domain = c(-1, 1) * max(abs(qbs$epa)), digits = 3, pill_height = 22
) |>
gt_sdv_headshots(columns = headshot, league = "nfl", id_system = "gsis", height = 34) |>
gt_sdv_logos(columns = team, league = "nfl", height = 22) |>
gt_theme_sdv()| NFL quarterbacks by EPA per dropback, 2026 | |||||||||
| Minimum 180 dropbacks, through week 12 | |||||||||
| Quarterback | Dropbacks | EPA/db | CPOE | Success | TD | INT | |||
|---|---|---|---|---|---|---|---|---|---|
| 1 | ![]() |
Brock Purdy | ![]() |
325 | 0.359 | +6.4 | 58.5% | 23 | 5 |
| 2 | ![]() |
Joe Burrow | ![]() |
435 | 0.251 | +9.4 | 54.9% | 30 | 6 |
| 3 | ![]() |
Trevor Lawrence | ![]() |
367 | 0.223 | +4.1 | 51.0% | 22 | 7 |
| 4 | ![]() |
Dak Prescott | ![]() |
496 | 0.202 | +1.6 | 50.4% | 27 | 7 |
| 5 | ![]() |
Jared Goff | ![]() |
400 | 0.188 | +0.9 | 51.2% | 21 | 5 |
| 6 | ![]() |
Patrick Mahomes | ![]() |
398 | 0.180 | +1.7 | 50.5% | 22 | 4 |
| 7 | ![]() |
Drake Maye | ![]() |
324 | 0.176 | +7.0 | 50.6% | 18 | 11 |
| 8 | ![]() |
Caleb Williams | ![]() |
304 | 0.165 | +4.8 | 50.3% | 12 | 6 |
| 9 | ![]() |
Josh Allen | ![]() |
373 | 0.160 | +0.3 | 48.0% | 14 | 11 |
| 10 | ![]() |
C.J. Stroud | ![]() |
429 | 0.149 | +1.5 | 47.1% | 24 | 4 |
| 11 | ![]() |
Jordan Love | ![]() |
427 | 0.118 | +0.2 | 43.1% | 21 | 9 |
| 12 | ![]() |
Kirk Cousins | ![]() |
438 | 0.115 | +0.5 | 48.2% | 23 | 11 |
| 13 | ![]() |
Matthew Stafford | ![]() |
414 | 0.112 | +0.5 | 48.8% | 19 | 11 |
| 14 | ![]() |
J.J. McCarthy | ![]() |
185 | 0.101 | −2.0 | 41.6% | 4 | 3 |
| 15 | ![]() |
Geno Smith | ![]() |
382 | 0.085 | +4.3 | 46.3% | 16 | 3 |
| 16 | ![]() |
Jayden Daniels | ![]() |
333 | 0.065 | +3.2 | 46.2% | 10 | 3 |
| Data: nflverse play-by-play via nflreadr | Viz: sdvplotR | |||||||||
The same quarterbacks on the two axes, each drawn as his headshot. Up and to the right is efficient and accurate.
ggplot(qbs, aes(x = cpoe, y = epa)) +
geom_hline(yintercept = mean(qbs$epa), linetype = "dashed", colour = "grey55") +
geom_vline(xintercept = mean(qbs$cpoe), linetype = "dashed", colour = "grey55") +
geom_sdv_headshots(aes(player_id = id), league = "nfl", id_system = "gsis", height = 0.08) +
ggrepel::geom_text_repel(
aes(label = sub("^\\S+\\s+", "", name)), # the last name
size = 3, colour = "grey25", point.size = 13, box.padding = 0.35,
min.segment.length = 0, segment.colour = "grey70", max.overlaps = Inf,
seed = 2026 # a seed: the same layout each week
) +
labs(
title = paste("NFL quarterbacks,", season),
subtitle = paste0("EPA per dropback against CPOE, minimum ", 15 * team_games, " dropbacks, ", through),
x = "Completion percentage over expected",
y = "EPA per dropback",
caption = "Data: nflverse via nflreadr | Viz: sdvplotR"
) +
theme_minimal(base_size = 13) +
theme(plot.title = element_text(face = "bold"), panel.grid.minor = element_blank())
4. Interactive version
The offense-against-defense chart from section 2 as a plotly chart:
hover a logo for the team’s record, EPA and rank, and drag a box to zoom
into a crowded corner. A transparent marker trace carries the hover
text, and add_sdv_logos() puts the logos on as layout
images, in data units. plotly sizes its axes from the markers only, so
the ranges get a margin for the logos, and a range given high-to-low
reverses the defense axis.
pad <- function(v) range(v) + c(-1, 1) * 0.08 * diff(range(v))
plotly::plot_ly(
power, x = ~off_epa, y = ~def_epa, type = "scatter", mode = "markers",
marker = list(size = 24, opacity = 0), hoverinfo = "text",
text = ~sprintf(
"%s (%s), rank %d<br>Offense %+.3f, defense %+.3f<br>Net %+.3f per play",
name, record, rank, off_epa, def_epa, net
)
) |>
plotly::layout(
title = list(text = paste("NFL offense and defense,", season, through), x = 0.02),
xaxis = list(title = "Offense: EPA per play", range = pad(power$off_epa)),
yaxis = list(title = "Defense: EPA allowed per play (reversed)", range = rev(pad(power$def_epa)))
) |>
add_sdv_logos(power$off_epa, power$def_epa, power$team, "nfl", size = 0.07)More recipes like this one, in plotly, ggiraph, leaflet and reactable, are in Interactive charts.
Related
- Leaderboard Dashboards for layout patterns.
- College football weekly, and the NBA, WNBA, MLB and NHL leaderboards.
- Social graphics, automated posts tables like these on a schedule.
Related SportsDataverse packages
- sdvplot - the Python plotting package
- sdvplot-js - the JavaScript / TypeScript plotting packages
- cfbfastR - college football
- hoopR - men’s basketball
- wehoop - women’s basketball
- baseballr - baseball
- fastRhockey - hockey
- oddsapiR - betting odds
- sportyR - playing surfaces
- sportsdataverse-py - the Python package
- sportsdataverse-R - the R meta-package















































