Compose in RMarkdown or Quarto. Those will allow you to mix text, inline and chunk code output including plots and local or linked images. These can be output to pdf, html or pdf. (Or Word )
the whole infrastructure have been created to use PDFs instead of Rmarkdown. There is a 99.999% chance I wont be changing anything. Hence somehow showing an image into a PDF would be much more preferable.