Closed Ryo-N7 closed 2 years ago
hmm no, have to re-write a considerable amount of the code to restructure it to get it to generalize for any number of goals for either team
bit more work but it's got to be done...
also handle 'own goal' cases
i'm also moving around the code so that the 'plot' element code like the title and themes stuff is all closer together and also happens right before the actual plot is made.
for some reason it was stuck at the top?
I've also consolidated a lot of the data pre-processing into one pipe instead of jumping around a myriad of steps and re-assigning it to the 'data' variable. much cleaner this way.
there's no need to split the geom_*()
into separate data frames as you can just use group
argument but i'll work on that in a separate issue?
in
plot_timeline()
the label we have for shots/goals is the minute of that... which isn't really necessary due to the x-axis. The focus of this plot is on the xG so we should be labeling the xG value instead