plot_sonar | R Documentation |
This function allows for data, that can be from Opta or Statsbomb, to be used for plotting pass sonars.
plot_sonar(data, data_type = "statsbomb", title = "")
data |
Dataframe that houses pass data. Dataframe must contain atleast the following columns: |
data_type |
Type of data that is being put in: opta or statsbomb. Default set to "statsbomb" |
title |
Title of the passing sonar plot |
a ggplot2 object
## Not run:
plot <- plot_sonar(data, data_type = "statsbomb")
plot
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.