powered by
This function creates a donut chart that displays the percentage of possessions that each player of a team ends while being on the court.
get_donut_usage(data_usage, team_sel, size_play, size_perc)
A donut chart.
Data frame with the number of possessions that each player played and the number that he ended.
String with the team's full name.
Size of the players' labels.
Size of the percentages labels.
Guillermo Vinue with the help of ChatGPT.
Donut charts are an alternative for pie charts, which have a hole in the middle, making them cleaner to read than pie charts.
get_donut_usage_action
if (FALSE) { get_donut_usage(acb_usage_data_2526, "Valencia Basket", 3, 4) }
Run the code above in your browser using DataLab