I create a set of slides using rmarkdown. I add a figure using latex includegraphics
which works as expected. But, when I add a figure generate via R code, the ‘latex’ figure disappears.
Minimal code example
---
title: "TITLE"
author: "JS"
subtitle: SUBTITLE
output:
beamer_presentation:
keep_tex: yes
ioslides_presentation: default
fontsize: 14pt
---
# Example
begin{figure}[t]
centering
includegraphics[scale=0.25]{include_figure}
end{figure}
---
# Add figure via R code
```{r, message = FALSE, warnings = FALSE, eval = TRUE, echo = TRUE}
plot(rnorm(100))
Any suggestions what I do wrong?