1st half drive chart. Final score: UGA 30, Texas 15
Start
Plays
Yards
Time
Points
Pts/Drive
Yds/Play
Yds/Pct
1
75
3
4
1:00
0
PUNT
1.3
5.3%
2
83
2
6
0:48
0
INT
3.0
7.2%
3
80
9
62
4:45
0
INT
6.9
77.5%
4
13
4
13
1:36
7
TD
3.2
100.0%
5
28
7
13
2:43
3
FG
1.9
46.4%
6
34
3
34
1:29
7
TD
11.3
100.0%
7
55
7
25
1:51
3
FG
3.6
45.5%
8
80
3
9
1:12
0
PUNT
3.0
11.2%
9
30
4
4
0:25
3
END OF HALF
1.0
13.3%
47
42
170
15:49
23
2.9 ppd
3.9
45.2%
1
Start1
Plays1
Yards1
Time1
Points1
Pts/Drive1
Yds/Play1
Yds/Pct1
1
87
7
26
3:21
0
PUNT
3.7
29.9%
2
42
3
1
1:32
0
PUNT
0.3
2.4%
3
95
4
8
1:52
0
FUMBLE
2.0
8.4%
4
92
3
-7
1:37
0
PUNT
−2.3
0.0%
5
75
3
5
0:47
0
INT
1.7
6.7%
6
75
3
-4
1:56
0
PUNT
−1.3
0.0%
7
75
6
23
1:48
0
PUNT
3.8
30.7%
8
80
5
10
1:18
0
FUMBLE
2.0
12.5%
22
34
62
14:11
0
0.0 ppd
1.2
11.3%
Data via {cfbfastR}, built with {gtUtils} | Table by Chris at Bless your chart
1
Points per drive (ppd) based on drive results. Available yards using the start as the distance to the goal. Summary stats shows average start, yds/play, and available yards percentage.
Load USC drive
Code
# make data based off play-by-play# https://www.espn.com/college-football/playbyplay/_/gameId/401628521usc_drives <- tibble::tribble(~team_name, ~drive_num, ~plays, ~yards, ~start_yd, ~end_yd, ~result, "Maryland",1,9,30,97,67,"DOWNS","USC",4,4,9,33,24,"BLOCKED FG","Maryland",7,5,47,53,0,"TOUCHDOWN") |> dplyr::mutate(start_yd = dplyr::if_else( team_name =="Maryland", 100-start_yd, start_yd ),end_yd = dplyr::if_else( team_name =="Maryland", 100-end_yd, end_yd ))
Custom ggplot2 theme
Code
theme_me <-function() {# Create a base theme with minimal style base_theme <- ggplot2::theme_minimal(base_size =10, base_family ="RobotoCondensed-Regular")# Customize the base theme with additional modifications custom_theme <- base_theme + ggplot2::theme(plot.title = ggplot2::element_text(hjust =0.5,size =24,face ="bold" ),plot.subtitle = ggplot2::element_text(hjust =0.5,size =10,lineheight =0.25,vjust =-0.5 ),plot.caption = ggplot2::element_text(hjust =1,size =6,lineheight =0.35,margin = ggplot2::margin(t =20) ),panel.grid.minor = ggplot2::element_line(color ="gray", linetype ="dotted"), # Customize minor grid linesplot.background = ggplot2::element_rect(fill ="floralwhite", color ="floralwhite") )return(custom_theme)}