Appends a column with HTML that will render in team logos and names for table plotting.
Usage
gt_cbb_teams(
data,
team_column,
logo_column = "team",
logo_color = "normal",
logo_type = "logo",
logo_height = 25,
name_type = "full",
include_name = TRUE,
vertical_align = "-30%"
)Arguments
- data
Pass through your plotting data
- team_column
Indicate which column contains your
teamvariable- logo_column
Indicates the name of the HTML column
- logo_color
Indicate whether you want
normallogos ordarkones.- logo_type
Indicate whether you want to plot logos ('logo', default) or wordmarks ('wordmark')
- logo_height
The height of the logo or wordmark in the HTML string
- include_name
Should the conference name be included in the column? Defaults to FALSE as wordmarks are distinctive.
- vertical_align
The CSS styler for vertical align; defaults to -30%.
Details
I really hate putting team logos and names in separate columns,
and this helper function will add conference logos or wordmarks and create
the HTML code to render in logos and teams in the same column for tables.
If you are using gt to plot, you must use fmt_markdown({logo_column}) to
render in the HTML. Set logo_column to your team variable if you wish
to overwrite your team column with the logo HTML (recommended but not default).