get_four_factors_plot {BAwiR} | R Documentation |
Four factors plot
Description
Once computed the team's factors and its rankings with
do_four_factors_df
, this function represents them.
Usage
get_four_factors_plot(df_rank, df_no_rank, team, language)
Arguments
df_rank |
Data frame with the team's offense and defense four factors and its ranking labels. |
df_no_rank |
Data frame with the team's offense and defense four factors. |
team |
Team name. Multiple teams can be chosen. |
language |
Language labels. Current options are 'en' for English and 'es' for Spanish. |
Value
Graphical device.
Author(s)
Guillermo Vinue
See Also
Examples
## Not run:
df <- do_join_games_bio("ACB", acb_games_1718, acb_players_1718)
df1 <- do_add_adv_stats(df)
team <- "Valencia"
df_four_factors <- do_four_factors_df(df1, team)
# If only one team is represented the ranking between parentheses is just one.
get_four_factors_plot(df_four_factors$df_rank,
df_four_factors$df_no_rank, team, "en")
## End(Not run)
[Package BAwiR version 1.3.2 Index]