Description Usage Arguments Value
View source: R/create_OPTA_pitch.R
A pitch plot base that is designed for the OPTA values for x and y of 0-100 Uses ggplot and returns a plot ready for further data to be plotted over the top.
1 2 3 4 | create_OPTA_pitch(grass_colour = "#F9F9F9", line_colour = "#8F8F8F",
background_colour = "#F9F9F9", goal_colour = "#000000",
goaltype = "barcanumbers", middlethird = TRUE, BasicFeatures = FALSE,
arcs = TRUE, padding = 5)
|
grass_colour |
Colour of the grass, Default = "#F9F9F9", HEXCODE or accept colour string i.e. "red" |
line_colour |
Colour of the line, Default = "#8F8F8F", HEXCODE or accept colour string i.e. "red" |
background_colour |
Colour of the Default = "#F9F9F9", border area, HEXCODE or accept colour string i.e. "red" |
goaltype |
Type of goal used. Default = "barcanumbers". "line" and "box" also available |
middlethird |
Default = FALSE, Adds a shading to the middle third of the pitch |
BasicFeatures |
Default = FALSE, If TRUE removes most of the pitch features to have a more minimalist design |
arcs |
Default = TRUE, adds the D-arcs |
padding |
Default = 10, adds some padding around the pitch |
A pitch plot, that allows data to be plotted on top
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.