View source: R/plot_user_fantasy_points_for.R
plot_user_fantasy_points_for | R Documentation |
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).
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"
)
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). |
Returns a plot containing the total fantasy points for by user.
Nick Bultman, njbultman74@gmail.com, March 2024
## Not run: plot_user_fantasy_points_for(688281863499907072, "njbultman74")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.