plot_user_fantasy_points_differential {sleeperapi} | R Documentation |
Plot User Fantasy Points Differential
Description
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.
Usage
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"
)
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). |
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). |
Value
Returns a plot containing the total fantasy points differential by user.
Author(s)
Nick Bultman, njbultman74@gmail.com, March 2024
Examples
## Not run: plot_user_fantasy_points_differential(688281863499907072, "njbultman74")
[Package sleeperapi version 1.1.1 Index]