Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 416 Bytes

File metadata and controls

6 lines (4 loc) · 416 Bytes

draw_default_pitch_R

Draw a default Football Pitch in R

The function can be individualized to the nature of your data. Just set the maximum x- and y-value when calling it. In my case, I used StatsBomb data, whose data range from 0 to 120 on the x-axis and from 0 to 80 on the y-axis.

You might need to play around a bit with the radius of the center circle (third argument of the draw.circle-function, line 24).