When the actual length and width of a pitch are known, for example from Tracab file metadata, make_pitch_tracab can be used to replace the 105m x 68m defaults hardcoded in pitch_tracab. The remaining pitch markings are taken from the UEFA Category 4 standard (pitch_international).

make_pitch_tracab(length = 105, width = 68)

Arguments

length

Length of the pitch in metres

width

Width of the pitch in metres

Value

A named list of pitch marking coordinates.

See also

pitch_tracab

Examples

library(ggplot2)
library(ggsoccer)

ggplot() +
  annotate_pitch(dimensions = make_pitch_tracab(110, 70)) +
  theme_pitch()