Description Usage Arguments Value Examples
These property functions modify or return the orientation attribute of a
rtf_doc
object. Options are landscape or portrait. See the rtf_doc
help page for important notes about this property.
1 2 3 4 5 | orientation(x, ...)
orientation(x) <- value
set_orientation(x, value)
|
x |
A |
... |
Additonal arguments passed to method dispatch |
value |
A character vector of either 'landscape' or 'portrait' |
For orientation()
, the orientation attribute of the supplied
rtf_doc
object. For `orientation<-()`
and
set_orientation()
the modified object.
1 2 3 4 5 6 7 8 9 10 11 12 | library(huxtable)
ht <- huxtable(
column1 = 1:5,
column2 = letters[1:5]
)
rtf <- rtf_doc(ht, list(hf_line("aTitle")))
orientation(rtf)
# Returns landscape
orientation(rtf) <- "portrait"
# Sets orientation to portrait
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.