View source: R/plotAstNetwork.R
plotAstNetwork | R Documentation |
Uses igpraph to plot a network graph showing who assisted who from play-by-play data.
plotAstNetwork(pbp_df, team, n_min)
pbp_df |
Data frame with play-by-play data |
team |
A three letter string specifying the team code |
n_min |
Integer scalar specifying the minimum number of assists to be considered |
An igraph network plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.