Description Usage Arguments Value
View source: R/create_CH_pitch.R
Chyronhego tracking data working with pitch length of 10500 and width of 6600. Uses ggplot and returns a plot ready for further data to be plotted over the top.
1 2 3 4 | create_CH_pitch(grass_colour = "#F9F9F9", line_colour = "#8F8F8F",
background_colour = "#F9F9F9", goal_colour = "#000000",
goaltype = "barcanumbers", middlethird = FALSE, BasicFeatures = FALSE,
arcs = TRUE, padding = 100)
|
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 = 100, 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.