Is it possible to display a pdf file in an Rmarkdown file? Say, for example, a previously saved image :'myimage.pdf'
What I am aiming is a form of "\includegraphics[width=0.5]{myimage.pdf}"
You can insert this directly into your R Markdown. The alternate name will only be displayed if the image does not load.
![Alternate Name](file.pdf){width=500px}
An update from the very end of 2017
It is possible to import a PDF image using knitr::include_graphics()
, e.g.
{r label, out.width = "85%", fig.cap = "caption"}
include_graphics("path-to-your-image.pdf")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With