R/dimensions.R
make_pitch_tracab.RdWhen 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)A named list of pitch marking coordinates.
pitch_tracab
library(ggplot2)
library(ggsoccer)
ggplot() +
annotate_pitch(dimensions = make_pitch_tracab(110, 70)) +
theme_pitch()