Description Usage Arguments Value Note Examples
The filename of figure files is the combination of options fig.path
and label
. This function returns the path of figures for the current
chunk by default.
1 | fig_path(suffix = "", options = opts_current$get(), number)
|
suffix |
A filename suffix; if it is non-empty and does not
contain a dot |
options |
A list of options; by default the options of the current chunk. |
number |
The current figure number. The default is the internal chunk option
|
A character vector of the form ‘fig.path-label-i.suffix’.
When there are special characters (not alphanumeric or - or _) in the path, they will be automatically replaced with _. For example, ‘a b/c.d-’ will be sanitized to ‘a_b/c_d-’. This makes the filenames safe to LaTeX.
1 2 |
[1] "figure/abc-first-plot-1.pdf"
[1] "foo-bar-1.png" "foo-bar-2.png" "foo-bar-3.png" "foo-bar-4.png"
[5] "foo-bar-5.png" "foo-bar-6.png" "foo-bar-7.png" "foo-bar-8.png"
[9] "foo-bar-9.png" "foo-bar-10.png"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.