pitch_opta {ggsoccer}R Documentation

Pitch dimensions

Description

The coordinate system used to generate pitch markings in can be customised by supplying a pitch specification to the dimensions argument of annotate_pitch.

ggsoccer provides pitch specifications for a few popular data providers by default. However, user-defined specifications can also be used.

Usage

pitch_opta

pitch_statsperform

pitch_statsbomb

pitch_wyscout

pitch_international

pitch_tracab

pitch_impect

Format

An object of class list of length 10.

An object of class list of length 10.

An object of class list of length 11.

An object of class list of length 10.

An object of class list of length 11.

An object of class list of length 11.

An object of class list of length 11.

Details

A "pitch specification" is simply a list of dimensions that define a coordinate system. The required dimensions are:

The following pitch dimensions are provided:

See Also

make_pitch_tracab

Examples

library(ggplot2)
library(ggsoccer)

ggplot() +
  annotate_pitch(dimensions = pitch_statsbomb) +
  theme_pitch()


[Package ggsoccer version 0.2.0 Index]