Skip to contents

Compare two or more players' finishes across tournaments.

Usage

plot_head_to_head(players, year = NULL, file_path = NULL, data = NULL)

Arguments

players

Vector of player names

year

Optional year filter

file_path

Path to data file (.rds or .parquet)

data

Optional leaderboard data frame. Use this instead of `file_path` when the data is already in memory.

Value

ggplot object

Examples

if (FALSE) { # \dontrun{
season <- load_leaderboard(2025)
plot_head_to_head(c("Scheffler", "McIlroy"), data = season)
} # }