By default, figure size of R Markdown is specified with inches. This function changes the default unit.
hook_figure_unit(unit = "mm", .set = TRUE)
unit | A string of an unit (default: "mm"). Available units follow.
|
---|---|
.set |
|
invisible hook function
As a side effect, fig.retina
is set to NULL
because of
https://github.com/yihui/knitr/issues/1876.
hook_figure_unit('mm')#>