fc_theme: Pitch themes

Description Usage Details References Examples

Description

These are template themes that can be matched (or not) with the palatte argument in fc_annotate_pitch(). Use ggplot2 theme() for further theme refinements.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Details

fc_theme_bw()

A white pitch with black field markings.

fc_theme_classic()

A grass-green pitch with white field markings.

fc_theme_dark()

A black pitch with white field markings.

fc_theme_gw()

A white pitch with grey field markings.

fc_theme_smurf()

A blue pitch with white field markings. Inspired by the Boise State football field in Idaho.

fc_theme_wc()

Pitch and field markings representing the upcoming World Cup host's flag. The 2022 World Cup is hosted by Qatar.

References

Pappalardo, L., Cintia, P., Rossi, A. et al. A public data set of spatio-temporal match events in soccer competitions. Sci Data 6, 236 (2019). https://doi.org/10.1038/s41597-019-0247-7

All public Wyscout data is available at https://figshare.com/collections/Soccer_match_event_dataset/4415000/2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# load ggplot2
library(ggplot2)

ggplot() +
  fc_annotate_pitch() +
  fc_theme_gw()

ggplot() +
  fc_annotate_pitch(palette = "smurf") +
  fc_theme_smurf()

ggplot() +
  fc_annotate_pitch() +
  fc_theme_wc()

shawnsanto/scoutr documentation built on Feb. 27, 2021, 1:02 p.m.