Skip to content

Commit 2e693cd

Browse files
committed
fix figure subtitle
1 parent 9330344 commit 2e693cd

File tree

7 files changed

+253
-251
lines changed

7 files changed

+253
-251
lines changed

_posts/2023-02-23-nfl-draft-value-chart/nfl-draft-value-chart.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ library(rvest)
3535
library(gt)
3636
library(patchwork)
3737
38+
final_year <- lubridate::year(lubridate::today()) - 5
39+
3840
```
3941

4042
Do we really need another draft values chart out there? No, not really.
@@ -150,7 +152,7 @@ This is pretty simple: take the APY in terms of percent of the cap for each draf
150152
```{r, echo = FALSE}
151153
152154
players <- nflreadr::load_contracts() %>%
153-
filter(between(draft_year, 2011, 2020)) %>%
155+
filter(between(draft_year, 2011, final_year)) %>%
154156
arrange(otc_id, year_signed) %>%
155157
group_by(otc_id) %>%
156158
dplyr::slice(1:2) %>%
@@ -469,7 +471,7 @@ off + def &
469471
scale_y_continuous(limits = c(0, 8), expand = c(0, 0.05), breaks = scales::pretty_breaks(n = 10)) &
470472
plot_annotation(
471473
title = 'The Value of (non-QB) Draft Picks',
472-
subtitle = 'Draft Curves from 2011-2019 Draft Classes',
474+
subtitle = glue::glue('Draft Curves from 2011-{final_year} Draft Classes'),
473475
caption = '@benbbaldwin',
474476
theme = theme(
475477
plot.title = element_text(size = 18, hjust = 0.5, face="bold"),

0 commit comments

Comments
 (0)