View source: R/new_labelling.R
fig_id | R Documentation |
This function looks at the current chunk label and returns id="fig:label"
that is usable in the out.extra=
field of the R chunk. It allows to refer
to a figure generated from a chunk with this label. Use
out.extra=chunk_id()
to set the id, or use fig_id_auto()
.
fig_id(label) fig_id_auto()
label |
The label to use. If provided, it supersedes the chunk label. |
A string to set the id like id="fig:label". For fig_id_auto()
,
the function installs a hook in 'knitr' to add an id automatically for each
plot make by changing out.extra=
.
fig_id("my_label")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.