Description Usage Details References Examples
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.
1 2 3 4 5 6 7 8 9 10 11 |
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.
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
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.