Adds soccer pitch outlines (with transparent fill) to an existing ggplot object (e.g. heatmaps, passing maps, etc..)
soccerPitchFG(
plot,
lengthPitch = 105,
widthPitch = 68,
colPitch = "black",
arrow = c("none", "r", "l"),
title = NULL,
subtitle = NULL
)an existing ggplot object to add pitch lines layer to
length and width of pitch in metres
colour of pitch markings
adds team direction of play arrow as right ('r') or left ('l'); 'none' by default
adds title and subtitle to plot; NULL by default
a ggplot object
soccerPitch for plotting a soccer pitch as background layer