make_pitch_tracab | R Documentation |
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)
length |
Length of the pitch in metres |
width |
Width of the pitch in metres |
A named list of pitch marking coordinates.
pitch_tracab
library(ggplot2) library(ggsoccer) ggplot() + annotate_pitch(dimensions = make_pitch_tracab(110, 70)) + theme_pitch()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.