plot_league_information_table {sleeperapi} | R Documentation |
Plot League Information Table
Description
Given the league ID, generate a table showing team names and their associated statistics (wins, losses, points for/against, etc.).
Usage
plot_league_information_table(
league_id,
font_color = "inherit",
win_loss_fill = "RdYlGn",
fpts_for_fill = "lightgreen",
fpts_against_fill = "#f68383"
)
Arguments
league_id |
League ID generated from Sleeper (numeric). |
font_color |
Font color, hex code or name (string). |
win_loss_fill |
String describing the brewer.pal color palette selection. Can see all options through RColorBrewer::display.brewer.all() (string). |
fpts_for_fill |
Bar color, name or hex, for each fantasy points for cell by team (string). |
fpts_against_fill |
Bar color, name or hex, for each fantasy points against cell by team (string). |
Value
Returns a table containing team names and their associated statistics.
Author(s)
Nick Bultman, njbultman74@gmail.com, January 2024
Examples
## Not run: plot_league_information_table(688281863499907072)
## Not run: plot_league_information_table(688281863499907072, font_color = "#ee5050")
[Package sleeperapi version 1.1.1 Index]