Skip to contents

Annotations

Functions for table annotations

gt_538_caption()
Add a 538-style caption to a gt table
gt_cutline()
Draw a labeled cut line between rows of a gt table
gt_marginalia()
Style a column as margin notes
gt_column_subheaders()
Add stacked column headers with subtitles to a gt table
gt_social_tag()
Add social handles to a gt table
gt_title_header()
Build a styled header block for a gt table
gt_watermark()
Put a watermark behind a gt table

Coloring

Functions to color/fill columns of data

gt_legend_continuous()
Add a color legend to a gt table
gt_legend_discrete()
Add a discrete color key to a gt table
gt_color_pills()
Add color pills to gt table columns
gt_percentile_bar()
Draw percentile bars in a gt table
gt_row_accent()
Put a colored bar on the leading edge of each row
gt_color_ranks()
Color ranked columns of a gt table
gt_color_results()
Color rows of a gt table by win, loss, or tie result
gt_group_stripes()
Band alternate row groups of a gt table
gt_highlight_cells()
Fill individual cells in a gt table by a condition
gt_highlight_na()
Style and relabel missing values in a gt table
gt_outliers()
Flag outlying values in a gt table
gt_indicator_boxes()
Add colored indicator boxes to a gt table
gt_spotlight()
Focus on rows of a gt table by dimming the rest

Other

Miscellaneous functions

pal_midnight
A rank palette for dark backgrounds
gt_bold_rows()
Bold rows in a gt table
gt_border_bars_bottom()
Add horizontal bars to the bottom of a gt table
gt_border_bars_top()
Add horizontal bars to the top of a gt table
gt_border_grid()
Add a border grid to a gt table
gt_delta()
Add a computed change column to a gt table
gt_fmt_rank()
Format numbers as ordinals in a gt table
gt_fmt_tally()
Combine count columns into a single cell in a gt table
gt_scale_note()
Scale columns and disclose the scaling
gt_significance()
Add significance stars to a gt table
gt_set_font()
Set one font family across a whole gt table
gt_tiers()
Color and bold the tier column of a gt table
gt_wrap_labels()
Break long column labels across lines in a gt table

Layout

Arranging tables and their blocks

gt_grid()
Arrange several gt tables in a grid
gt_snake()
Lay a long table out in side-by-side blocks
gt_snake_align()
Reshape a parallel frame to match a snaked table
gt_theme_preview()
Preview data in every theme
gt_stack_tables()
Stack several gt tables vertically

Viewing + Saving

Functions for viewing and saving tables

gt_save_batch()
Save a matched set of images, one per group
gt_save_crop()
Save a gt table to an image and trim its whitespace
gt_social_crop()
Save a gt table onto a fixed-ratio canvas
theme_bg
Background colors used by the gtUtils themes

Themes

Table themes for use with {gt}

gt_theme_almanac()
Record-book theme for gt tables
gt_theme_athletic()
The Athletic theme for gt tables
gt_theme_booktabs()
Academic booktabs theme for gt tables
gt_theme_broadsheet()
Editorial serif theme for gt tables
gt_theme_brutalist()
Heavy-rule display theme for gt tables
gt_theme_drench()
Saturated single-color theme for gt tables
gt_theme_gtutils()
gtUtils theme for gt tables
gt_theme_kenpom()
KenPom theme for gt tables
gt_theme_midnight()
Dark theme for gt tables
gt_theme_ncaa()
NCAA theme for gt tables
gt_theme_pl()
Premier League theme for gt tables
gt_theme_savant()
Baseball Savant theme for gt tables
gt_theme_scoreboard()
Broadcast-graphics theme for gt tables
gt_theme_sofa()
SofaScore theme for gt tables
gt_theme_swiss()
International Typographic Style theme for gt tables
gt_theme_terminal()
Data-terminal theme for gt tables
gt_theme_tier()
Tier list theme for gt tables
gt_theme_tufte()
Minimal-ink theme for gt tables

Deprecated

Former names, kept for backward compatibility

gt_color_legend() gt_centered_legend()
Deprecated legend functions