plot_trending_players {sleeperapi} | R Documentation |
Plot Trending NFL Player Information
Description
Given the number of hours to look back, a limit of how many players to return, a color for labels, and a title, display a figure showing the top NFL additions and drops.
Usage
plot_trending_players(
lookback_hours = 24,
limit = 10,
tick_color = "black",
title = "Trending Adds/Drops",
drop_fill = "#f68383",
add_fill = "lightgreen"
)
Arguments
lookback_hours |
Number of hours to look back (numeric). |
limit |
Number of results you would like (numeric). |
tick_color |
Font color, name or hex, for display names (string). |
title |
Plot title - default is "Trending Adds/Drops" (string). |
drop_fill |
Bar color, name or hex, for drops (string). |
add_fill |
Bar color, name or hex, for adds (string). |
Value
Returns a plot containing information (name and count) about the trending players.
Author(s)
Nick Bultman, njbultman74@gmail.com, September 2023
Examples
## Not run: plot_trending_players(lookback_hours = 24, limit = 10)
## Not run: plot_trending_players(lookback_hours = 24, limit = 10, tick_color = "white")
[Package sleeperapi version 1.1.1 Index]