# NOT RUN {
# Heatmap of Tromso IL #9's position
data(tromso)
soccerHeatmap(subset(tromso, id == 8), xBins = 10)
# Heatmap of France defensive pressure locations w/ ~5x5m bins (pitchLength / 5 = 21, pitchWidth / 5 = 13.6)
statsbomb %>%
filter(type.name == "Pressure" & team.name == "France") %>%
soccerHeatmap(x = "location.x", y = "location.y", xBins = 21, yBins = 14,
title = "France (vs Argentina, 30th June 2016)",
subtitle = "Defensive pressure heatmap")
# }
Run the code above in your browser using DataLab