R/plots.R
plot_wins.Rd
Bar chart of wins by player.
plot_wins(year = NULL, top_n = 10, file_path = NULL, data = NULL)
Optional year filter
Number of players to show
Path to data file (.rds or .parquet)
Optional leaderboard data frame. Use this instead of `file_path` when the data is already in memory.
ggplot object
if (FALSE) { # \dontrun{ season <- load_leaderboard(2025) plot_wins(data = season) } # }