caption_pos: Position the table's caption

View source: R/properties-table.R

caption_posR Documentation

Position the table's caption

Description

If caption_pos is "top" or "bottom", then the horizontal position ("left", "center" or "right") will be determined by the huxtable"s position().

Usage

caption_pos(ht)

caption_pos(ht) <- value

set_caption_pos(ht, value)

Arguments

ht

A huxtable.

value

String: "top", "bottom", "topleft", "topcenter", "topright", "bottomleft", "bottomcenter" or "bottomright". Set to NA to reset to the default, which is "top".

Value

property() returns the property value(s). set_property() and map_property() return the modified huxtable.

See Also

Other caption properties: caption(), caption_width()

Examples


caption(jams) <- "Jam for sale"
jams
set_caption_pos(jams, "bottom")


huxtable documentation built on Aug. 19, 2025, 1:12 a.m.