Description Usage Arguments Value
Creating a pitch plot using ggplot2 that is ready to plot actions on top. Numerous options allow customisation.
1 2 3 4 | create_Pitch(grass_colour = "#F9F9F9", line_colour = "#8F8F8F",
background_colour = "#F9F9F9", goal_colour = "#000000",
goaltype = "line", middlethird = FALSE, BasicFeatures = FALSE,
JdeP = FALSE, padding = 5)
|
grass_colour |
A string as a colour by word or #HEX code |
line_colour |
A string as a colour by word or #HEX code |
background_colour |
A string as a colour by word or #HEX code |
goal_colour |
A string as a colour by word or #HEX code |
goaltype |
String, either "line", "box" or "barcanumbers". Default "line" |
middlethird |
Boolean. Default FALSE |
BasicFeatures |
Boolean. Default FALSE |
JdeP |
Boolean. Default FALSE |
arcs |
Boolean. Default TRUE |
padding |
Numeric. Default = 5 |
A plot of a pitch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.