Description Usage Arguments Value Examples
caption
- Keep track of numbering for table and figure captions.
caption_figure
- Keep track of numbering for figure captions.
caption_table
- Keep track of numbering for table captions.
1 2 3 4 5 6 7 8 | cap(type = 1, label, caption, style = "margin-bottom: 3em;",
copy2clip = interactive(), print = FALSE, spaces = 2)
caption_figure(label, caption, style = "margin-bottom: 3em;",
copy2clip = interactive(), print = FALSE)
caption_table(label, caption, style = "margin-top: 4em;",
copy2clip = interactive(), print = FALSE, spaces = 2)
|
type |
Either "figure" or "table" or accompanying numeric reference: figure = 1, table = 2. |
label |
A hyperlink reference label. |
caption |
A caption to place below/above a figure/table. |
style |
Additional style elements to be passed to the html |
copy2clip |
logical. If |
print |
logical. If |
spaces |
An integer value dictating the number of lines to skip after the table caption header. |
Returns a character vector of a caption.
1 2 | caption_figure("fig1", "A random figure.")
caption_table("tab1", "A table")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.