Description Usage Arguments Value See Also
Draws a soccer pitch as a ggplot object for the purpose of adding layers such as player positions, player trajectories, etc..
The functions listed below are deprecated and will be defunct in
the near future. When possible, alternative functions with similar
functionality are also mentioned. Help pages for deprecated functions are
available at help("soccermatics-deprecated")
.
1 2 3 4 5 6 7 8 9 |
lengthPitch, widthPitch |
length and width of pitch in metres |
arrow |
adds team direction of play arrow as right ( |
title, subtitle |
adds title and subtitle to plot; NULL by default |
theme |
palette of pitch background and lines, either |
data |
a default dataset for plotting in subsequent layers; NULL by default |
fillPitch, colPitch |
pitch fill and line colour |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.