View source: R/plot_user_fantasty_points_differential.R
plot_user_fantasy_points_differential | R Documentation |
Given the league ID and display name, plot the current total fantasy points for, against, and differential between the two together in one bar chart.
plot_user_fantasy_points_differential(
league_id,
display_name,
title = paste0("<b>Fantasy Point Differential: ", display_name, "</b>"),
tick_color = "black",
fill_points_for = "lightgreen",
fill_points_against = "#f68383"
)
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). |
fill_points_for |
Bar color, name or hex, for bar containing fantasy points for (string). |
fill_points_against |
Bar color, name or hex, for bar containing fantasy points against (string). |
Returns a plot containing the total fantasy points differential by user.
Nick Bultman, njbultman74@gmail.com, March 2024
## Not run: plot_user_fantasy_points_differential(688281863499907072, "njbultman74")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.