Skip to contents

Adds a top-line caption below the table with a line underneath like 538 tables. The top_caption is rendered as a footnote, and bottom_caption is rendered as a source note with markdown support.

Usage

gt_538_caption(gt_object, top_caption, bottom_caption = NULL, ...)

Arguments

gt_object

An existing gt table object of class gt_tbl.

top_caption

The caption to render as a footnote (can be markdown).

bottom_caption

The caption to render as a source note (can be markdown).

...

Optional additional arguments to gt::table_options().

Value

A gt_tbl with the styled captions