circle_assist_net: Circle Assist Network

View source: R/circle_assist_net.R

circle_assist_netR Documentation

Circle Assist Network

Description

Renders circlized assist network for game or entire season and allows for highlight of a single player if desired.

Usage

circle_assist_net(
  team,
  season,
  highlight_player = NA,
  highlight_color = NA,
  three_weights = T,
  threshold = 0,
  message = NA,
  return_stats = T
)

Arguments

team

Team to create network for

season

Season, as a character, (e.g. "2018-19"), or vector of ESPN game_ids. for which data to use in network.

highlight_player

Name of player to highlight in assist network. 'NA' yields full-team assist network with no player highlighting. Default = 'NA'.

highlight_color

Color of player links to be highlighted. 'NA' if “'highlight_player“' is 'NA'.

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'.

return_stats

Return Assist Network-related statistics (default = 'TRUE')

Value

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


lbenz730/ncaahoopR documentation built on March 28, 2024, 6:54 a.m.