out.width Parameter Not Working in Rmarkdown Word Output #142
Unanswered
lizhiwei1994
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm encountering an issue when generating a Word document using Rmarkdown where the out.width parameter does not seem to affect the size of the images. I tried setting the out.width parameter to control the width of the images in the Word document.
However, regardless of whether I set out.width to 100%, 50%, or 10%, the images all appear to be the same size in the final output.
Despite setting out.width to different values, the images in the generated Word file all appear to be the same size.
I have already tried various methods from the following resources, but none of them resolved the issue:
1.https://stackoverflow.com/questions/32977047/knitr-ignoring-width-and-out-width-options 2.https://stackoverflow.com/questions/51011490/knitr-not-displaying-graph-when-out-width-or-out-height-set 3.yihui/knitr#1477 4.https://benjaminlouis-stat.fr/en/blog/2020-05-21-astuces-ggplot-rmarkdown/ 5.https://bookdown.org/yihui/rmarkdown-cookbook/figure-size.html
Here is my Rmarkdown document and code:
Beta Was this translation helpful? Give feedback.
All reactions