circle_assist_net: Circle Assist Network

Description Usage Arguments Value

View source: R/circle_assist_net.R

Description

This function produces an assist network visualization for a team for a single game (or collection of games).

Usage

1
circle_assist_net(.data, team, node_col, highlight_player, highlight_color, three_weights, threshold, message, listing)

Arguments

.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 for each node in the data.

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

listing

Allows disabling the return of list of network statistics

Value

List with network statistics


snestler/wncaahoopR documentation built on Oct. 18, 2021, 2:11 p.m.