plot_duos | R Documentation |
Creates network plot of team ratings with players together on the court Uses empirical bayesian formula to estimate ratings relative to team average: regressed ORTG = (n_bar*r_bar_o + PTS) / (n_bar + POSS) n_bar = average possessions per lineup + regressed possessions r_bar_o = team offensive rating (PTS/POSS)*100
plot_duos(Lineup_Data = NA, team = NA, min_mins = 0, regressed_poss = 50)
team |
a single team name |
min_mins |
minimum number of minutes required for duo to play together |
regressed_poss |
effectively number of team average possessions used to "shrink" ratings |
lineup_data |
a data frame of lineups created from get_lineups() |
ggplot object of network plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.