soccermatics-deprecated: Plot a full soccer pitch

Description Usage Arguments Value See Also

Description

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").

Usage

1
2
3
4
5
6
7
8
9
soccerPitchBG(
  lengthPitch = 105,
  widthPitch = 68,
  arrow = c("none", "r", "l"),
  title = NULL,
  subtitle = NULL,
  theme = c("light", "dark", "grey", "grass"),
  data = NULL
)

Arguments

lengthPitch, widthPitch

length and width of pitch in metres

arrow

adds team direction of play arrow as right ('r') or left ('l'); 'none' by default

title, subtitle

adds title and subtitle to plot; NULL by default

theme

palette of pitch background and lines, either light (default), dark, grey, or grass

data

a default dataset for plotting in subsequent layers; NULL by default

fillPitch, colPitch

pitch fill and line colour

Value

a ggplot object

See Also

soccermatics-deprecated


JoGall/soccermatics documentation built on Aug. 12, 2021, 1:20 p.m.