# this is likely way too much work # gt::fmt_tf is slick, but seems to be a boolean only# tried to write a custom function to allow true_val # for any value with TRUE_home or TRUE_away# didn't work, so adding these manually # ironically, a good way to check my work tooacc_tbl |> gt::tab_options(table_body.hlines.color ="black") |> gtExtras::gt_highlight_rows(rows =c(1),# GT home gamesfill ="#d9f0d3",columns =c(7, 11, 12, 14) ) |> gtExtras::gt_highlight_rows(rows =c(1),# GT away gamesfill ="#e7d4e8",columns =c(10, 13, 18, 20) ) |> gtExtras::gt_highlight_rows(rows =c(2),# Stanford home gamesfill ="#d9f0d3",columns =c(10, 16, 20, 21) ) |> gtExtras::gt_highlight_rows(rows =c(2),# Stanford away gamesfill ="#e7d4e8",columns =c(5, 6, 12, 14, 18) ) |> gtExtras::gt_highlight_rows(rows =c(3),# Duke home gamesfill ="#d9f0d3",columns =c(8, 13, 16, 20) ) |> gtExtras::gt_highlight_rows(rows =c(3),# Duke away gamesfill ="#e7d4e8",columns =c(9, 11, 12, 21) ) |> gtExtras::gt_highlight_rows(rows =c(4),# UVA home gamesfill ="#d9f0d3",columns =c(4, 10, 13, 16) ) |> gtExtras::gt_highlight_rows(rows =c(4),# UVA away gamesfill ="#e7d4e8",columns =c(6, 14, 15, 20, 21) ) |> gtExtras::gt_highlight_rows(rows =c(5),# BC home gamesfill ="#d9f0d3",columns =c(10, 13, 15, 18) ) |> gtExtras::gt_highlight_rows(rows =c(5),# BC away gamesfill ="#e7d4e8",columns =c(8, 16, 19, 20) ) |> gtExtras::gt_highlight_rows(rows =c(6),# FSU home gamesfill ="#d9f0d3",columns =c(4, 5, 6, 13) ) |> gtExtras::gt_highlight_rows(rows =c(6),# FSU away gamesfill ="#e7d4e8",columns =c(7, 11, 14, 16) ) |> gtExtras::gt_highlight_rows(rows =c(7),# Cal home gamesfill ="#d9f0d3",columns =c(11, 12, 17, 18) ) |> gtExtras::gt_highlight_rows(rows =c(7),# Cal away gamesfill ="#e7d4e8",columns =c(8, 15, 16, 21) ) |> gtExtras::gt_highlight_rows(rows =c(8),# Pitt home gamesfill ="#d9f0d3",columns =c(5, 6, 18, 19) ) |> gtExtras::gt_highlight_rows(rows =c(8),# Pitt away gamesfill ="#e7d4e8",columns =c(4, 10, 13, 16) ) |> gtExtras::gt_highlight_rows(rows =c(9),# Lville home gamesfill ="#d9f0d3",columns =c(9, 11, 15, 16) ) |> gtExtras::gt_highlight_rows(rows =c(9),# Lville away gamesfill ="#e7d4e8",columns =c(4, 6, 14, 17, 19) ) |> gtExtras::gt_highlight_rows(rows =c(10),# Miami home gamesfill ="#d9f0d3",columns =c(7, 8, 20, 21) ) |> gtExtras::gt_highlight_rows(rows =c(10),# Miami away gamesfill ="#e7d4e8",columns =c(5, 9, 10, 18) ) |> gtExtras::gt_highlight_rows(rows =c(11),# Wake home gamesfill ="#d9f0d3",columns =c(5, 6, 7, 19) ) |> gtExtras::gt_highlight_rows(rows =c(11),# Wake away gamesfill ="#e7d4e8",columns =c(11, 12, 13, 17) ) |> gtExtras::gt_highlight_rows(rows =c(12),# Clemson home gamesfill ="#d9f0d3",columns =c(10, 12, 17, 19) ) |> gtExtras::gt_highlight_rows(rows =c(12),# Clemson away gamesfill ="#e7d4e8",columns =c(8, 15, 20, 21) ) |> gtExtras::gt_highlight_rows(rows =c(13),# Syracuse home gamesfill ="#d9f0d3",columns =c(9, 11, 17, 20) ) |> gtExtras::gt_highlight_rows(rows =c(13),# Syracuse away gamesfill ="#e7d4e8",columns =c(4, 5, 12, 15) ) |> gtExtras::gt_highlight_rows(rows =c(14),# VT home gamesfill ="#d9f0d3",columns =c(4, 6, 9, 19) ) |> gtExtras::gt_highlight_rows(rows =c(14),# VT away gamesfill ="#e7d4e8",columns =c(7, 11, 17, 18) ) |> gtExtras::gt_highlight_rows(rows =c(15),# NC State home gamesfill ="#d9f0d3",columns =c(7, 17, 18, 21) ) |> gtExtras::gt_highlight_rows(rows =c(15),# NC State away gamesfill ="#e7d4e8",columns =c(5, 6, 9, 13) ) |> gtExtras::gt_highlight_rows(rows =c(16),# UNC home gamesfill ="#d9f0d3",columns =c(9, 12, 15, 19) ) |> gtExtras::gt_highlight_rows(rows =c(16),# UNC away gamesfill ="#e7d4e8",columns =c(4, 7, 8, 21) ) |> gtExtras::gt_highlight_rows(rows =c(17),# Domers home gamesfill ="#d9f0d3",columns =c(8, 10, 17, 19) ) |> gtExtras::gt_highlight_rows(# find all home gamesrows =c(17),# Domers away gamesfill ="#e7d4e8",columns =c(9)) |> gtExtras::gt_highlight_rows(rows =c(18),# SMU home gamesfill ="#d9f0d3",columns =c(4, 5, 8, 15) ) |> gtExtras::gt_highlight_rows(rows =c(18),# SMU away gamesfill ="#e7d4e8",columns =c(7, 10, 17, 19) ) -> home_away_acc_tbl
Complete table with title and source notes
Code
# add title and custom styles home_away_acc_tbl |> gt::tab_header(title ="2024 ACC Football: Strength of Schedule in Conference Play and League Opponents",subtitle = gt::html("Shows each team's preseason win total, in-conference strength of schedule, and league opponents for the 2024 regular season.<br>Teams sorted by hardest to easiest league schedule. <br>Green square = home game | Purple square = away game | Gray is for a neutral site game (FSU and GT in Ireland!)" ) ) |> gt::tab_source_note(source_note = gt::html("<ul><li>Win totals from FanDuel as of July 17, 2024 and schedules from cfbfastR</li><li>SOS is adjusted for home/away/neutral games </li> <li>Uses relative strength based on preseason win totals: opponent_win_total / max(team_win_total)</li> <li>Greatness is becoming...Greater? Stanford, Cal, and SMU are new league members</li> <li>Notre Dame plays 5 ACC opponents each regular season (only one ACC game away from South Bend this season)</li> </ul><hr> <b>Table by Chris (@dadgumboxscores) + Bless your chart | July 21, 2024</b>" ) ) |> gt::tab_style(style = gt::cell_text(weight ="bold"),locations = gt::cells_title(groups ="title") ) |> gt::tab_style(style = gt::cell_borders(weight = gt::px(2),color ="black",sides ="bottom"),locations = gt::cells_title(groups ="subtitle") ) |>gt::tab_style(style = gt::cell_borders(weight = gt::px(2),color ="black",sides ="bottom"),locations = gt::cells_body(rows =18) ) -> final_tblgtExtras::gtsave_extra(final_tbl,filename ="acc_sos_tbl.png",vheight =650,vwidth =850)final_tbl
2024 ACC Football: Strength of Schedule in Conference Play and League Opponents
Shows each team's preseason win total, in-conference strength of schedule, and league opponents for the 2024 regular season.
Teams sorted by hardest to easiest league schedule.
Green square = home game | Purple square = away game | Gray is for a neutral site game (FSU and GT in Ireland!)
Win
Total
SOS
ACC Only
5.5
0.80
⭘
⭘
⭘
●
●
⭘
●
●
●
●
●
⭘
⭘
⭘
●
⭘
●
⭘
3.5
0.77
⭘
●
●
⭘
⭘
⭘
●
⭘
●
⭘
●
⭘
●
⭘
●
⭘
●
●
5.5
0.73
⭘
⭘
⭘
⭘
●
●
⭘
●
●
●
⭘
⭘
●
⭘
⭘
⭘
●
●
4.5
0.72
●
⭘
●
⭘
⭘
⭘
●
⭘
⭘
●
●
●
●
⭘
⭘
⭘
●
●
4.5
0.72
⭘
⭘
⭘
⭘
●
⭘
●
⭘
⭘
●
⭘
●
●
⭘
●
●
●
⭘
9.5
0.71
●
●
●
●
⭘
●
⭘
●
⭘
●
●
⭘
●
⭘
⭘
⭘
⭘
⭘
5.5
0.68
⭘
⭘
⭘
⭘
●
⭘
⭘
●
●
⭘
⭘
●
●
●
●
⭘
⭘
●
5.5
0.67
●
●
●
⭘
⭘
⭘
●
⭘
⭘
●
⭘
⭘
●
⭘
●
●
⭘
⭘
8.5
0.65
●
⭘
●
⭘
⭘
●
⭘
●
⭘
⭘
●
●
●
●
⭘
●
⭘
⭘
9.5
0.65
⭘
●
⭘
●
●
●
●
⭘
⭘
⭘
⭘
⭘
⭘
⭘
●
⭘
●
●
4.5
0.65
⭘
●
●
●
⭘
⭘
⭘
●
●
●
⭘
⭘
⭘
●
⭘
●
⭘
⭘
9.5
0.63
⭘
⭘
⭘
⭘
●
⭘
●
⭘
●
⭘
⭘
●
⭘
●
⭘
●
●
●
7.5
0.60
●
●
⭘
⭘
⭘
●
⭘
●
●
⭘
⭘
●
⭘
●
⭘
⭘
●
⭘
8.5
0.60
●
⭘
●
●
⭘
●
⭘
●
⭘
⭘
⭘
⭘
⭘
●
●
●
⭘
⭘
8.5
0.59
⭘
●
●
●
⭘
●
⭘
⭘
⭘
●
⭘
⭘
⭘
●
●
⭘
⭘
●
7.5
0.57
●
⭘
⭘
●
●
●
⭘
⭘
●
⭘
⭘
●
⭘
⭘
⭘
●
⭘
●
10.5
0.56
⭘
⭘
⭘
⭘
●
●
●
⭘
⭘
⭘
⭘
⭘
⭘
●
⭘
●
⭘
⭘
8.5
0.56
●
●
⭘
●
●
⭘
●
⭘
⭘
⭘
⭘
●
⭘
●
⭘
●
⭘
⭘
Win totals from FanDuel as of July 17, 2024 and schedules from cfbfastR
SOS is adjusted for home/away/neutral games
Uses relative strength based on preseason win totals: opponent_win_total / max(team_win_total)
Greatness is becoming...Greater? Stanford, Cal, and SMU are new league members
Notre Dame plays 5 ACC opponents each regular season (only one ACC game away from South Bend this season)
Table by Chris (@dadgumboxscores) + Bless your chart | July 21, 2024