make_pitch_tracab {ggsoccer} | R 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()
[Package ggsoccer version 0.1.7 Index]