annotate_pitchSB: This function returns field markings in ggplot. This is...

annotate_pitchSBR Documentation

This function returns field markings in ggplot. This is adapted from the ggsoccer package to fit StatsBomb Data.

Description

This function puts the field mappings onto the graphics in specification with StatsBomb data.

Usage

ggplot(StatsBombData, aes(location.x, location.y)) +
 annotate_pitchSB()

Arguments

theme

A ggplot theme layer.

Value

theme

A ggplot theme layer.

Examples

ggplot(StatsBombData, aes(location.x, location.y)) +
 annotate_pitchSB()

statsbomb/StatsBombR documentation built on Dec. 3, 2024, 11:53 p.m.