make_pitch_tracab: Create Tracab dimensions object from pitch length and width

View source: R/dimensions.R

make_pitch_tracabR Documentation

Create Tracab dimensions object from pitch length and width

Description

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

Usage

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()



Torvaney/ggsoccer documentation built on April 7, 2024, 8:03 a.m.