An easy way consists in including a scale factor k
in the individual chunk options:
{r, fig.width=8*k, fig.height=6*k}
and a variable dpi
in the global chunk options:
opts_chunk$set(dpi = dpi)
Then you can set the values of dpi
and k
before knitting the Rmd
file in the global environment:
dpi <<- 96
k <<- 1
or you can set them in a chunk in the Rmd
file (set k
in the first chunk for example).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…