Description Usage Arguments Details Value Examples
View source: R/hook_figure_unit.R
By default, figure size of R Markdown is specified with inches. This function changes the default unit.
1 | hook_figure_unit(unit = "mm", .set = TRUE)
|
unit |
A string of an unit (default: "mm"). Available units follow.
|
.set |
|
As a side effect, fig.retina
is set to NULL
because of
https://github.com/yihui/knitr/issues/1876.
invisible hook function
1 | hook_figure_unit('mm')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.