Description Usage Arguments Value
This function produces an assist network visualization for a team for a single game (or collection of games).
1 | assist_net(.data, team, node_col, three_weights, threshold, message, listing)
|
.data |
play-by-play data frame returned from w_get_pbp_game function |
team |
Team to create network for. Can be bare home or away variable from play-by-play object or quoted team name |
node_col |
Color of nodes in network. Can be selected but defaults to primary team color and then a backup if one is not found. |
three_weights |
Logical indicating whether to give extra weight for assisted three point shots. If TRUE, assisted three-point shots will be given weight 1.5 (as opposed to weight 1). Default = 'TRUE'. |
threshold |
Number between 0-1 indicating minimum percentage of team assists/baskets a player needs to exceed to be included in network. Default = 0. |
message |
User supplied plot title to overwrite default plot title, if desired. Default = 'NA'. |
listing |
Allows disabling the return of list of network statistics |
List with network statistics
"clust_coeff" - Network Clustering Coefficient
"page_ranks" - Player Page Ranks in network
"hub_scores" - Player Hub Scores in network
"auth_scores" - Player Authority Scores in network
"ast_freq" - Player percentage of team's assists
"shot_freq" - Player percenatge of scoring on team's assisted baskets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.