View source: R/plot_passflow.R
plot_passflow | R Documentation |
This function takes in a dataframe and binsizes to make a passflow map. Compatible, for right now, with StatsBomb data only. Returns a ggplot object
plot_passflow(data, data_type = "statsbomb", binwidth = 0)
data |
Dataframe that must house pass data only and must contain atleast the following columns: |
data_type |
Type of data that is being put in: opta or statsbomb. Default set to "statsbomb" |
binwidth |
Details the bin size the passflow needs to bin to. The same argument name as the underlying call to |
returns a ggplot2 object
## Not run:
plot <- plot_passflow(data, binwidth = 30)
plot
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.