This function allows for data, that can be from Opta or Statsbomb, to be used
for plotting pass sonars.
Usage
plot_sonar(data, data_type = "statsbomb", title = "")
Arguments
- data
Dataframe that houses pass data. Dataframe must contain atleast the following columns: x
, y
, finalX
, finalY
- data_type
Type of data that is being put in: opta or statsbomb. Default set to "statsbomb"
- title
Title of the passing sonar plot
Examples
if (FALSE) {
plot <- plot_sonar(data, data_type = "statsbomb")
plot
}