plot_regular_season_rankings {sleeperapi} | R Documentation |
Plot Regular Season League Rankings
Description
Given the league ID, plot the regular season league rankings. This is done by assigning positive points to wins and negative points to losses and then also adding in fantasy points for. The calculation can be seen in the get_main_data function.
Usage
plot_regular_season_rankings(
league_id,
title = "<b>Regular Season Rankings</b>",
tick_color = "black",
rank_high_fill = "lightgreen",
rank_low_fill = "#f68383"
)
Arguments
league_id |
League ID assigned by Sleeper (numeric). |
title |
Title for plot, which can include HTML formatting (string). |
tick_color |
Font color, name or hex, for display names (string). |
rank_high_fill |
Bar color, name or hex, for highest rank (string). |
rank_low_fill |
Bar color, name or hex, for lowest rank (string). |
Value
Returns a plot containing the regular season league rankings.
Author(s)
Nick Bultman, njbultman74@gmail.com, January 2024
Examples
## Not run: plot_regular_season_rankings(688281863499907072)
## Not run: plot_regular_season_rankings(688281863499907072, title = "test", tick_color = "red")
[Package sleeperapi version 1.1.1 Index]