# \donttest{
library(gt)
library(mlbplotR)
gt_headshot_example <- data.frame(
player_name = c(
"Nathan Eovaldi", "Marcus Semien", "Corey Seager", "Jacob deGrom", "Chris Martin"
),
savant_id1 = c(543135, 543760, 608369, 594798, 455119),
savant_id2 = c(543135, 543760, 608369, 594798, 455119)
) %>%
gt::gt() %>%
gt_fmt_mlb_headshot(columns = "savant_id1") %>%
gt_fmt_mlb_dot_headshot(columns = "savant_id2")
# }
Run the code above in your browser using DataLab