plot_user_weekly_matchups {sleeperapi} | R Documentation |
Plot User Weekly Matchups
Description
Given the league ID and display name, plot the total points scored by week for the display name and colored by whether the result was a win or a loss. The x-axis labels show the opposing display name for that specific week.
Usage
plot_user_weekly_matchups(
league_id,
display_name,
title = paste0("<b>", display_name, ": Weekly Matchups, Filled by Win/Loss</b>"),
tick_color = "inherit",
win_fill = "lightgreen",
lose_fill = "#f68383"
)
Arguments
league_id |
League ID assigned by Sleeper (numeric). |
display_name |
Display name created by user (string). |
title |
Title for plot, which can include HTML formatting (string). |
tick_color |
Font color, name or hex, for weeks (string). |
win_fill |
Fill color, name or hex, for wins (string). |
lose_fill |
Fill color, name or hex, for losses (string). |
Value
Returns a plot containing the display name's weekly matchups.
Author(s)
Nick Bultman, njbultman74@gmail.com, May 2024
Examples
## Not run: plot_user_weekly_matchups(688281863499907072, "datcommish")
[Package sleeperapi version 1.1.1 Index]