Nothing
By default, R Markdown employs inch as a unit of figure size.
You can change it by hook_figure_unit
.
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
CAUTIONS
fig.width
and fig.height
in inches.NULL
to the fig.retina
chunk option.hook_figure_unit()
changes to the unit of figure size to millimeters.
Note that this hook will not change the default size.
library(chunkhooks) hook_figure_unit()
# fig.width=50, fig.height=50 (50mm * 50mm) plot(1)
You may change default unit by the first argument, unit
.
hook_figure_unit("cm")
Choices are followings:
measurements::conv_unit_options$length
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.