Learn R Programming

StatsBombR (version 0.1.0)

annotate_pitchSB: 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

Run this code
# NOT RUN {
ggplot(StatsBombData, aes(location.x, location.y)) +
 annotate_pitchSB()
# }

Run the code above in your browser using DataLab