# NOT RUN {
data(tromso)
# simple heatmap of player #9's position
soccerHeatmap(subset(tromso, id == 8), xBins = 10)
# draw heatmap with approximately 5m x 5m bins (pitchLength / 5 = 21, pitchWidth / 5 = 13.6)
soccerHeatmap(subset(tromso, id == 8), xBins = 21, yBins = 14)
# }
Run the code above in your browser using DataLab