【发布时间】:2020-09-16 18:13:06
【问题描述】:
给定以下rmarkdown 文件:
```{r}
library(knitr)
```
```{r, out.width="100%"}
path <- "plotx.png"
knitr::include_graphics(path)
```
```{r, out.width="100%", out.height="150%"}
knitr::include_graphics(path)
```
数字之间的大小没有差异,好像数字大小选项没有任何效果。使用其他类似的选项,例如fig.width,fig.height,没有任何区别。
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux bullseye/sid
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
[7] LC_PAPER=en_CA.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] knitr_1.29 slmisc_1.2.1 latticeExtra_0.6-29 lattice_0.20-41
loaded via a namespace (and not attached):
[1] png_0.1-7 mime_0.9 grid_4.0.2 magrittr_1.5 evaluate_0.14 highr_0.8 stringi_1.4.6 RColorBrewer_1.1-2 tools_4.0.2
[10] stringr_1.4.0 markdown_1.1 jpeg_0.1-8.1 xfun_0.16 yaml_2.2.1 compiler_4.0.2
【问题讨论】: