maui_tbl <- maui_lineups |> dplyr::arrange(-NETRTG) |> dplyr::mutate(eFG. = eFG. *100,deFG. = deFG. *100,FTrate = FTrate *100,dFTrate = dFTrate *100 ) |> dplyr::select(lineup, NETRTG, Mins, oPOSS, PTS, ORTG, dPOSS, dPTS, DRTG) |> gt::gt() |> gtUtils::gt_theme_gtutils() |> gt::fmt_number(columns =c(NETRTG, ORTG, DRTG, Mins),decimals =1) |> gt::cols_align(columns =c(lineup), align ="left") |> gtUtils::gt_column_subheaders(NETRTG =list(heading ="NET", subtitle ="Rating"),Mins =list(heading ="Mins", subtitle ="Played"),oPOSS =list(heading ="Possessions", subtitle ="Played"),PTS =list(heading ="Points", subtitle ="Scored"),ORTG =list(heading ="Rating", subtitle ="Offense"),dPOSS =list(heading ="Possessions", subtitle ="Played"),dPTS =list(heading ="Points", subtitle ="Allowed"),DRTG =list(heading ="Rating", subtitle ="Defense"),heading_color ="black",subtitle_color ="gray" ) |> gt::cols_label(lineup ="Lineup") |> gt::tab_spanner(columns =c(oPOSS, PTS, ORTG),label = gt::html("Offense")) |> gt::tab_spanner(columns =c(dPOSS, dPTS, DRTG),label = gt::html("Defense")) |> gtExtras::gt_add_divider(columns =c(Mins, ORTG),sides ="right",color ="black" ) |> gt::data_color(columns = NETRTG,direction =c("column"),method =c("numeric"),palette =c("lightpink", "lightgreen"),alpha =0.6 ) |> gt::tab_header(title = gt::html("North Carolina: Lineups over 2024 Maui Invitational"),subtitle = gt::html("Shows the seven lineups that played at least five minutes over the three games in the Maui Invitational.<br>Carolina went 1-2 in these three games, the starting lineup is highlighted." ) ) |> gt::tab_source_note(source_note = gt::html("<hr>Data via bigballR, theme via {gtUtils}<hr> <b>Table by Chris at Bless your chart</b>" ) ) |> gt::tab_style(locations = gt::cells_column_spanners(),style = gt::cell_text(font = gt::google_font("Signika Negative"),weight =850,size = gt::px(15) ) ) |> gt::tab_style(locations = gt::cells_source_notes(),style = gt::cell_text(font = gt::google_font("Signika Negative"),size = gt::px(11.5),weight =250 ) ) |> gt::tab_style(style =list( gt::cell_text(font = gt::google_font("Signika Negative") ) ),locations = gt::cells_body(columns =c(lineup) ) ) |> gt::tab_options(table.width = gt::px(800)) |> gt::tab_style(style =list(gt::cell_fill(color ="#C5C5FF")),locations = gt::cells_body(columns =c(lineup), rows =c(7)) ) |> gtUtils::gt_border_bars_bottom(c("#56a0d3", "#89BDE0", "#BBD9ED")) gtUtils::gt_save_crop( maui_tbl,file ="maui_tbl.png",whitespace =30,bg ="#FFFDF5")maui_tbl
North Carolina: Lineups over 2024 Maui Invitational
Shows the seven lineups that played at least five minutes over the three games in the Maui Invitational.
Carolina went 1-2 in these three games, the starting lineup is highlighted.
Lineup
NET Rating
Mins Played
Offense
Defense
Possessions Played
Points Scored
Rating Offense
Possessions Played
Points Allowed
Rating Defense
Davis-Trimble-Jackson-Powell-Lubin
46.5
11.4
19
31
163.2
18
21
116.7
Cadeau-Davis-Trimble-Powell-Washington
33.9
10.8
19
34
178.9
20
29
145.0
Cadeau-Davis-Trimble-Powell-Withers
16.2
12.6
25
30
120.0
26
27
103.8
Cadeau-Davis-Trimble-Powell-Lubin
10.9
5.2
11
10
90.9
10
8
80.0
Cadeau-Trimble-Jackson-Powell-Lubin
−7.3
5.5
11
8
72.7
10
8
80.0
Cadeau-Davis-Trimble-Withers-Lubin
−16.3
11.8
23
22
95.7
25
28
112.0
Cadeau-Davis-Trimble-Withers-Washington
−33.4
18.1
38
34
89.5
35
43
122.9
Data via bigballR, theme via {gtUtils}
Table by Chris at Bless your chart