Create timeline charts (xG) using 'understat' event data.
Source:R/plot_timeline.r
plot_timeline.Rd
This function allows to make match timelines using data collected event-by-event.
Arguments
- data
Data, for now only compatible with understat data.
- match_year
the year the match was played.
- team_home
home team according to data.
- team_away
away team according to data.
- color_home
line colour for the home team.
- color_away
line colour for the away team.
- theme
Choose from 4 ggplot2 themes -> dark, almond, rose, white.