View source: R/plot_regular_season_rankings.R
plot_regular_season_rankings | R Documentation |
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.
plot_regular_season_rankings(
league_id,
title = "<b>Regular Season Rankings</b>",
tick_color = "black",
rank_high_fill = "lightgreen",
rank_low_fill = "#f68383"
)
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). |
Returns a plot containing the regular season league rankings.
Nick Bultman, njbultman74@gmail.com, January 2024
## Not run: plot_regular_season_rankings(688281863499907072)
## Not run: plot_regular_season_rankings(688281863499907072, title = "test", tick_color = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.