Description Usage Arguments Value See Also
View source: R/soccerPitchFG.R
Adds soccer pitch outlines (with transparent fill) to an existing ggplot object (e.g. heatmaps, passing maps, etc..)
1 2 3 4 5 6 7 8 9 |
plot |
an existing ggplot object to add pitch lines layer to |
lengthPitch, widthPitch |
length and width of pitch in metres |
colPitch |
colour of pitch markings |
arrow |
adds team direction of play arrow as right ( |
title, subtitle |
adds title and subtitle to plot; NULL by default |
a ggplot object
soccerPitch
for plotting a soccer pitch as background layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.