hook_figure_unit: Change the unit of figure size

Description Usage Arguments Details Value Examples

View source: R/hook_figure_unit.R

Description

By default, figure size of R Markdown is specified with inches. This function changes the default unit.

Usage

1
hook_figure_unit(unit = "mm", .set = TRUE)

Arguments

unit

A string of an unit (default: "mm"). Available units follow. measurements::conv_unit_options$length

.set

TRUE or FALSE to set the hook.

Details

As a side effect, fig.retina is set to NULL because of https://github.com/yihui/knitr/issues/1876.

Value

invisible hook function

Examples

1

chunkhooks documentation built on Aug. 5, 2020, 5:09 p.m.