gt_fmt_mlb_headshot
takes an existing gt_tbl
object and converts player ids into headshots.
This is a wrapper around
gtExtras::gt_image_rows()
written by Tom Mock, which is a wrapper around gt::text_transform()
+ gt::web_image()
/
gt::local_image()
with the necessary boilerplate already applied.
Arguments
- gt_object
An existing gt table object of class
gt_tbl
- columns
The columns wherein changes to cell data colors should occur. Has no effect if
locations
is notNULL
- height
The absolute height (px) of the image in the table cell
- na_headshot_to_logo
should NA/non matches return the MLB logo instead of a grayed out blank headshot? Defaults to
TRUE