# NOT RUN {
library(dplyr)
data(statsbomb)
# transform x,y-coords, standardise column names
my_df <- statsbomb %>%
soccerTransform(method = 'statsbomb') %>%
soccerStandardCols(method = 'statsbomb')
# feed to other functions without defining variables
# x, y, id,distance, angle, etc...
soccerHeatmap(my_df)
# }
Run the code above in your browser using DataLab