Learn R Programming

huxtable (version 5.5.7)

caption_pos: 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)

Value

caption_pos() returns the caption_pos property. set_caption_pos() returns the modified huxtable.

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".

See Also

Other caption properties: caption(), caption_width()

Examples

Run this code

caption_pos(jams) <-  "topleft"
caption_pos(jams)

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

Run the code above in your browser using DataLab