# NOT RUN {
library(dplyr)
data(statsbomb)
# xG timeline of France vs. Argentina
# w/ goalscorer labels, adjusted xG data
statsbomb %>%
soccerxGTimeline(homeCol = "blue", awayCol = "lightblue", y_buffer = 0.4)
# no goalscorer labels, raw xG data
statsbomb %>%
soccerxGTimeline(homeCol = "blue", awayCol = "lightblue", adj = FALSE)
# }
Run the code above in your browser using DataLab