huxtable (version 4.5.0)

caption_pos: Caption position

Description

Functions to get or set the table-level caption position property of a huxtable.

Usage

caption_pos(ht)
caption_pos(ht) <- value
set_caption_pos(ht, value)

Arguments

ht

A huxtable.

value

A length-one character vector, one of "top", "bottom", "topleft", "topcenter", "topright", "bottomleft", "bottomcenter", "bottomright". Set to NA to reset to the default, which is "top".

Value

For caption_pos, the caption_pos property. For set_caption_pos, the modified huxtable.

Details

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

See Also

caption()

Examples

Run this code
# NOT RUN {
caption(jams) <- "Price list"
jams
caption_pos(jams) <- "top"
jams
# }

Run the code above in your browser using DataCamp Workspace