I have an Rmarkdown that I am trying to render to a word document. I have an image that I would like to take up the full width of the page and I am specifying the width as an argument when I include the markdown. However, regardless of what I do, I can’t seem to get the figure to be wider than 14.82cm. Does anyone have any suggestions?
Here’s a reprex. Save the following RMarkdown somewhere.
---
title: "Untitled"
output:
word_document: default
date: '2024-04-23'
---
Some text.
{ width=5cm }
{ width=14cm }
{ width=15cm }
{ width=17cm }
{ width=100% }
You’ll also need to save this figure in the working directory as Danmark_v2024a_Figure_04.png
– this is the figure that I am trying to include. Once you’ve got it setup, use Rstudio to knit it to Word. Then open the resulting word doc – you’ll see that the width of the largest figures is limited to 14.82cm.
How do I get a “full-width” 17cm wide figure?