View source: R/plot_trending_players.R
plot_trending_players | R Documentation |
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.
plot_trending_players(
lookback_hours = 24,
limit = 10,
tick_color = "black",
title = "Trending Adds/Drops",
drop_fill = "#f68383",
add_fill = "lightgreen"
)
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). |
Returns a plot containing information (name and count) about the trending players.
Nick Bultman, njbultman74@gmail.com, September 2023
## Not run: plot_trending_players(lookback_hours = 24, limit = 10)
## Not run: plot_trending_players(lookback_hours = 24, limit = 10, tick_color = "white")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.