plot_user_fantasy_points_for {sleeperapi} | R Documentation |
Plot User Fantasy Points For
Description
Given the league ID and display name, plot the current total fantasy points for that user while also plotting the current total fantasy points for the rest of the league, with the specified user's bar colored in a different color than the others (assuming the colors are not set to the same by the user).
Usage
plot_user_fantasy_points_for(
league_id,
display_name,
title = "<b>Total Fantasy Points For by User</b>",
tick_color = "black",
user_fill = "#f68383",
other_fill = "lightgrey"
)
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 display names (string). |
user_fill |
Bar color, name or hex, for display name specified (string). |
other_fill |
Bar color, name or hex, for other display names (string). |
Value
Returns a plot containing the total fantasy points for by user.
Author(s)
Nick Bultman, njbultman74@gmail.com, March 2024
Examples
## Not run: plot_user_fantasy_points_for(688281863499907072, "njbultman74")
[Package sleeperapi version 1.1.1 Index]